pub enum PlanValidationError {
InvalidRootOp {
root_op: u32,
num_ops: u32,
},
InputOutOfBounds {
op_index: u32,
field: &'static str,
input: u32,
num_ops: u32,
},
ForwardReference {
op_index: u32,
field: &'static str,
input: u32,
},
EmptyPlan,
ExprColOutOfBounds {
op_index: u32,
field: &'static str,
col_idx: u32,
input_width: u32,
},
ColumnIndexOutOfBounds {
op_index: u32,
field: &'static str,
col_idx: u32,
input_width: u32,
},
SchemaArityMismatch {
op_index: u32,
field: &'static str,
expected: u32,
actual: u32,
},
SortArityMismatch {
op_index: u32,
keys: u32,
dirs: u32,
},
InvalidGraphRef {
op_index: u32,
field: &'static str,
value: String,
},
NonPositiveValue {
op_index: u32,
field: &'static str,
value: u32,
},
SchemaKindMismatch {
op_index: u32,
field: &'static str,
col_idx: u32,
expected_kind: ColKind,
actual_kind: ColKind,
},
}Expand description
Errors detected during structural validation of a deserialized plan.
Variants§
InvalidRootOp
root_op index is out of bounds.
InputOutOfBounds
An op at op_index references an input that is out of bounds.
ForwardReference
An op at op_index references a forward (or self) input, which would
create a cycle or depend on an op that hasn’t been computed yet.
EmptyPlan
The plan contains no ops.
ExprColOutOfBounds
An op has a column index reference outside the available input width.
ColumnIndexOutOfBounds
An op references a key/column index outside the available input width.
SchemaArityMismatch
A schema-bearing op has inconsistent arity contracts.
SortArityMismatch
Sort key and sort direction vectors differ in length.
InvalidGraphRef
A graph_ref on a graph-touching op is malformed.
NonPositiveValue
A field requiring a strictly positive integer received zero.
SchemaKindMismatch
A column referenced by a field has the wrong ColKind for the op.
Trait Implementations§
Source§impl Clone for PlanValidationError
impl Clone for PlanValidationError
Source§fn clone(&self) -> PlanValidationError
fn clone(&self) -> PlanValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlanValidationError
impl Debug for PlanValidationError
Source§impl Display for PlanValidationError
impl Display for PlanValidationError
Source§impl Error for PlanValidationError
impl Error for PlanValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for PlanValidationError
impl PartialEq for PlanValidationError
impl Eq for PlanValidationError
impl StructuralPartialEq for PlanValidationError
Auto Trait Implementations§
impl Freeze for PlanValidationError
impl RefUnwindSafe for PlanValidationError
impl Send for PlanValidationError
impl Sync for PlanValidationError
impl Unpin for PlanValidationError
impl UnsafeUnpin for PlanValidationError
impl UnwindSafe for PlanValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more