pub enum ExecutorError {
Show 72 variants
TableNotFound(String),
TableAlreadyExists(String),
ColumnNotFound {
column_name: String,
table_name: String,
searched_tables: Vec<String>,
available_columns: Vec<String>,
},
InvalidTableQualifier {
qualifier: String,
column: String,
available_tables: Vec<String>,
},
ColumnAlreadyExists(String),
IndexNotFound(String),
IndexAlreadyExists(String),
InvalidIndexDefinition(String),
TriggerNotFound(String),
TriggerAlreadyExists(String),
SchemaNotFound(String),
SchemaAlreadyExists(String),
SchemaNotEmpty(String),
RoleNotFound(String),
TypeNotFound(String),
TypeAlreadyExists(String),
TypeInUse(String),
DependentPrivilegesExist(String),
PermissionDenied {
role: String,
privilege: String,
object: String,
},
ColumnIndexOutOfBounds {
index: usize,
},
TypeMismatch {
left: SqlValue,
op: String,
right: SqlValue,
},
DivisionByZero,
InvalidWhereClause(String),
UnsupportedExpression(String),
UnsupportedFeature(String),
StorageError(String),
SubqueryReturnedMultipleRows {
expected: usize,
actual: usize,
},
SubqueryColumnCountMismatch {
expected: usize,
actual: usize,
},
ColumnCountMismatch {
expected: usize,
provided: usize,
},
CastError {
from_type: String,
to_type: String,
},
TypeConversionError {
from: String,
to: String,
},
ConstraintViolation(String),
MultiplePrimaryKeys,
CannotDropColumn(String),
ConstraintNotFound {
constraint_name: String,
table_name: String,
},
ExpressionDepthExceeded {
depth: usize,
max_depth: usize,
},
QueryTimeoutExceeded {
elapsed_seconds: u64,
max_seconds: u64,
},
RowLimitExceeded {
rows_processed: usize,
max_rows: usize,
},
MemoryLimitExceeded {
used_bytes: usize,
max_bytes: usize,
},
VariableNotFound {
variable_name: String,
available_variables: Vec<String>,
},
LabelNotFound(String),
SelectIntoRowCount {
expected: usize,
actual: usize,
},
SelectIntoColumnCount {
expected: usize,
actual: usize,
},
ProcedureNotFound {
procedure_name: String,
schema_name: String,
available_procedures: Vec<String>,
},
FunctionNotFound {
function_name: String,
schema_name: String,
available_functions: Vec<String>,
},
ParameterCountMismatch {
routine_name: String,
routine_type: String,
expected: usize,
actual: usize,
parameter_signature: String,
},
ParameterTypeMismatch {
parameter_name: String,
expected_type: String,
actual_type: String,
actual_value: String,
},
TypeError(String),
ArgumentCountMismatch {
expected: usize,
actual: usize,
},
RecursionLimitExceeded {
message: String,
call_stack: Vec<String>,
max_depth: usize,
},
FunctionMustReturn,
InvalidControlFlow(String),
InvalidFunctionBody(String),
FunctionReadOnlyViolation(String),
ParseError(String),
InvalidExtractField {
field: String,
value_type: String,
},
ArrowDowncastError {
expected_type: String,
context: String,
},
ColumnarTypeMismatch {
operation: String,
left_type: String,
right_type: Option<String>,
},
SimdOperationFailed {
operation: String,
reason: String,
},
ColumnarColumnNotFound {
column_index: usize,
batch_columns: usize,
},
ColumnarColumnNotFoundByName {
column_name: String,
},
ColumnarLengthMismatch {
context: String,
expected: usize,
actual: usize,
},
UnsupportedArrayType {
operation: String,
array_type: String,
},
SpatialGeometryError {
function_name: String,
message: String,
},
SpatialOperationFailed {
function_name: String,
message: String,
},
SpatialArgumentError {
function_name: String,
expected: String,
actual: String,
},
CursorAlreadyExists(String),
CursorNotFound(String),
CursorAlreadyOpen(String),
CursorNotOpen(String),
CursorNotScrollable(String),
Other(String),
}Variants§
TableNotFound(String)
TableAlreadyExists(String)
ColumnNotFound
Fields
InvalidTableQualifier
ColumnAlreadyExists(String)
IndexNotFound(String)
IndexAlreadyExists(String)
InvalidIndexDefinition(String)
TriggerNotFound(String)
TriggerAlreadyExists(String)
SchemaNotFound(String)
SchemaAlreadyExists(String)
SchemaNotEmpty(String)
RoleNotFound(String)
TypeNotFound(String)
TypeAlreadyExists(String)
TypeInUse(String)
DependentPrivilegesExist(String)
PermissionDenied
ColumnIndexOutOfBounds
TypeMismatch
DivisionByZero
InvalidWhereClause(String)
UnsupportedExpression(String)
UnsupportedFeature(String)
StorageError(String)
SubqueryReturnedMultipleRows
SubqueryColumnCountMismatch
ColumnCountMismatch
CastError
TypeConversionError
ConstraintViolation(String)
MultiplePrimaryKeys
CannotDropColumn(String)
ConstraintNotFound
ExpressionDepthExceeded
Expression evaluation exceeded maximum recursion depth This prevents stack overflow from deeply nested expressions or subqueries
QueryTimeoutExceeded
Query exceeded maximum execution time
RowLimitExceeded
Query exceeded maximum row processing limit
MemoryLimitExceeded
Query exceeded maximum memory limit
VariableNotFound
Variable not found in procedural context (with available variables)
LabelNotFound(String)
Label not found in procedural context
SelectIntoRowCount
Procedural SELECT INTO returned wrong number of rows (must be exactly 1)
SelectIntoColumnCount
Procedural SELECT INTO column count doesn’t match variable count
ProcedureNotFound
Procedure not found (with suggestions)
FunctionNotFound
Function not found (with suggestions)
ParameterCountMismatch
Parameter count mismatch with details
Fields
ParameterTypeMismatch
Parameter type mismatch with details
TypeError(String)
Type error in expression evaluation
ArgumentCountMismatch
Function argument count mismatch
RecursionLimitExceeded
Recursion limit exceeded in function/procedure calls (with call stack)
FunctionMustReturn
Function must return a value but did not
InvalidControlFlow(String)
Invalid control flow (e.g., LEAVE/ITERATE outside of loop)
InvalidFunctionBody(String)
Invalid function body syntax
FunctionReadOnlyViolation(String)
Function attempted to modify data (read-only violation)
ParseError(String)
Parse error
InvalidExtractField
Invalid EXTRACT field for the given value type
ArrowDowncastError
Arrow array downcast failed (columnar execution)
ColumnarTypeMismatch
Type mismatch in columnar operations
SimdOperationFailed
SIMD operation failed (returned None or error)
ColumnarColumnNotFound
Column not found in batch by index
ColumnarColumnNotFoundByName
Column not found in batch by name
ColumnarLengthMismatch
Column length mismatch in batch operations
UnsupportedArrayType
Unsupported array type for columnar operation
SpatialGeometryError
Invalid or incompatible geometry type in spatial function
SpatialOperationFailed
Spatial operation failed (distance, intersection, etc.)
SpatialArgumentError
Spatial function argument count or type mismatch
CursorAlreadyExists(String)
Cursor already exists with this name
CursorNotFound(String)
Cursor not found
CursorAlreadyOpen(String)
Cursor is already open
CursorNotOpen(String)
Cursor is not open (must OPEN before FETCH)
CursorNotScrollable(String)
Cursor does not support backward movement (not declared with SCROLL)
Other(String)
Trait Implementations§
Source§impl Clone for ExecutorError
impl Clone for ExecutorError
Source§fn clone(&self) -> ExecutorError
fn clone(&self) -> ExecutorError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutorError
impl Debug for ExecutorError
Source§impl Display for ExecutorError
impl Display for ExecutorError
Source§impl Error for ExecutorError
impl Error for ExecutorError
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
Source§impl From<CatalogError> for ExecutorError
impl From<CatalogError> for ExecutorError
Source§fn from(err: CatalogError) -> Self
fn from(err: CatalogError) -> Self
Source§impl From<ExecutorError> for SessionError
impl From<ExecutorError> for SessionError
Source§fn from(e: ExecutorError) -> Self
fn from(e: ExecutorError) -> Self
Source§impl From<StorageError> for ExecutorError
impl From<StorageError> for ExecutorError
Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Source§impl PartialEq for ExecutorError
impl PartialEq for ExecutorError
impl StructuralPartialEq for ExecutorError
Auto Trait Implementations§
impl Freeze for ExecutorError
impl RefUnwindSafe for ExecutorError
impl Send for ExecutorError
impl Sync for ExecutorError
impl Unpin for ExecutorError
impl UnwindSafe for ExecutorError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more