pub enum PlanError {
Show 14 variants
PredicateInvalid(ValidateError),
UnknownOrderField {
field: String,
},
UnorderableField {
field: String,
},
IndexNotFound {
index: IndexModel,
},
IndexPrefixTooLong {
prefix_len: usize,
field_len: usize,
},
IndexPrefixEmpty,
IndexPrefixValueMismatch {
field: String,
},
PrimaryKeyUnsupported {
field: String,
},
PrimaryKeyMismatch {
field: String,
key: Key,
},
InvalidKeyRange,
EmptyOrderSpec,
DeletePlanWithPagination,
LoadPlanWithDeleteLimit,
DeleteLimitRequiresOrder,
}Expand description
PlanError
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.
IndexPrefixEmpty
Index prefix must include at least one value.
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.
EmptyOrderSpec
ORDER BY must specify at least one field.
DeletePlanWithPagination
Delete plans must not carry pagination.
LoadPlanWithDeleteLimit
Load plans must not carry delete limits.
DeleteLimitRequiresOrder
Delete limits require an explicit ordering.