pub enum PlanError {
PredicateInvalid(ValidateError),
UnknownOrderField {
field: String,
},
UnorderableField {
field: String,
},
IndexNotFound {
index: IndexModel,
},
IndexPrefixTooLong {
prefix_len: usize,
field_len: usize,
},
IndexPrefixValueMismatch {
field: String,
},
PrimaryKeyUnsupported {
field: String,
},
PrimaryKeyMismatch {
field: String,
key: Key,
},
InvalidKeyRange,
}Expand description
Executor-visible validation failures for logical plans.
These errors indicate that a plan cannot be safely executed against the current schema or entity definition. They are not planner bugs.
Variants§
PredicateInvalid(ValidateError)
Predicate failed schema-level validation.
UnknownOrderField
ORDER BY references an unknown field.
UnorderableField
ORDER BY references a field that cannot be ordered.
IndexNotFound
Access plan references an index not declared on the entity.
Fields
§
index: IndexModelIndexPrefixTooLong
Index prefix exceeds the number of indexed fields.
IndexPrefixValueMismatch
Index prefix literal does not match indexed field type.
PrimaryKeyUnsupported
Primary key field exists but is not key-compatible.
PrimaryKeyMismatch
Supplied key does not match the primary key type.
InvalidKeyRange
Key range has invalid ordering.
Trait Implementations§
Source§impl Error for PlanError
impl Error for PlanError
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 From<PlanError> for QueryError
impl From<PlanError> for QueryError
Source§impl From<ValidateError> for PlanError
impl From<ValidateError> for PlanError
Source§fn from(source: ValidateError) -> Self
fn from(source: ValidateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlanError
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnwindSafe for PlanError
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