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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()