pub enum ExecutorError {
Show 96 variants
TableNotFound(String),
TableAlreadyExists(String),
SqliteSystemTableReadOnly {
table_name: String,
operation: 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>,
},
AmbiguousColumnName {
column_name: 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,
IntegerOverflow,
InvalidWhereClause(String),
WrongNumberOfArguments {
function_name: String,
},
MisuseOfAggregate {
function_name: String,
},
MisuseOfAggregateContext {
function_name: String,
},
MisuseOfAliasedAggregate {
alias_name: String,
},
MisuseOfWindowFunction {
function_name: String,
},
UnsupportedExpression(String),
UnsupportedFeature(String),
SqliteCompatError(String),
StorageError(String),
SubqueryReturnedMultipleRows {
expected: usize,
actual: usize,
},
SubqueryColumnCountMismatch {
expected: usize,
actual: usize,
},
SetOperationColumnMismatch {
operator: String,
},
ColumnCountMismatch {
expected: usize,
provided: usize,
},
InsertColumnCountMismatch {
table_name: String,
expected: usize,
provided: usize,
has_explicit_columns: bool,
},
ValuesRowCountMismatch,
InsertNoSuchColumn {
table_name: String,
column_name: String,
},
CannotInsertIntoGeneratedColumn {
column_name: String,
},
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,
},
JoinTableLimitExceeded {
table_count: usize,
max_tables: 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),
AssertionViolation {
assertion_name: String,
},
OrderByOutOfRange {
term_position: usize,
column_number: i64,
select_list_len: usize,
},
GroupByOutOfRange {
term_position: usize,
column_number: i64,
select_list_len: usize,
},
OrderByTermNotInResultSet {
term_position: usize,
},
InvalidLimitOffset {
clause: String,
value: String,
reason: String,
},
JoinUsingColumnNotPresent {
column_name: String,
},
OnClauseReferencesRightTable,
NoSuchColumn {
column_ref: String,
},
NoSuchFunction {
function_name: String,
},
Other(String),
}Variants§
TableNotFound(String)
TableAlreadyExists(String)
SqliteSystemTableReadOnly
SQLite system table may not be modified (sqlite_master, sqlite_schema)
ColumnNotFound
Fields
InvalidTableQualifier
AmbiguousColumnName
Ambiguous column name in JOIN query (SQLite-compatible error) Raised when an unqualified column reference matches columns in multiple tables
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
IntegerOverflow
Integer overflow in arithmetic operation (SQLite-compatible error) Format: “integer overflow”
InvalidWhereClause(String)
WrongNumberOfArguments
Wrong number of arguments to a function (SQLite-compatible error)
MisuseOfAggregate
Misuse of aggregate function (SQLite-compatible error) e.g., aggregate in WHERE clause or nested aggregates Format: “misuse of aggregate function X()”
MisuseOfAggregateContext
Misuse of aggregate in ORDER BY or other execution contexts (SQLite-compatible) Format: “misuse of aggregate: X()” (note the colon, not “function”)
MisuseOfAliasedAggregate
Misuse of aliased aggregate (SQLite-compatible error) e.g., HAVING max(alias) where alias refers to an aggregate like min(x)
MisuseOfWindowFunction
Misuse of window function (SQLite-compatible error) e.g., window function in WHERE, GROUP BY, or HAVING clause Format: “misuse of window function X()”
UnsupportedExpression(String)
UnsupportedFeature(String)
SqliteCompatError(String)
SQLite-compatible error message (output as-is without prefix) Used when we need to match SQLite’s exact error message format
StorageError(String)
SubqueryReturnedMultipleRows
SubqueryColumnCountMismatch
SetOperationColumnMismatch
Set operation (UNION, INTERSECT, EXCEPT) column count mismatch (SQLite-compatible) Format: “SELECTs to the left and right of {op} do not have the same number of result columns”
Fields
ColumnCountMismatch
InsertColumnCountMismatch
Fields
ValuesRowCountMismatch
VALUES rows have inconsistent number of terms (SQLite-compatible error) Format: “all VALUES must have the same number of terms”
InsertNoSuchColumn
Column not found in INSERT statement (SQLite-compatible error) Format: “table T has no column named C”
CannotInsertIntoGeneratedColumn
Cannot INSERT into a generated column (SQLite-compatible error) Format: “cannot INSERT into generated column "C"”
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
JoinTableLimitExceeded
Join exceeded maximum number of tables (SQLite-compatible error) Format: “at most 64 tables in a join”
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)
AssertionViolation
Assertion constraint violation (SQL:1999 Feature F671/F672)
OrderByOutOfRange
ORDER BY column number out of range (SQLite-compatible error)
GroupByOutOfRange
GROUP BY column number out of range (SQLite-compatible error)
OrderByTermNotInResultSet
ORDER BY term doesn’t match any column in the result set Used for compound queries (UNION, INTERSECT, EXCEPT) where ORDER BY must reference result columns by position or alias
InvalidLimitOffset
Invalid LIMIT or OFFSET value (SQLite-compatible error)
JoinUsingColumnNotPresent
JOIN USING column not present in both tables (SQLite-compatible error) Format: “cannot join using column X - column not present in both tables”
OnClauseReferencesRightTable
ON clause references a table that appears to the right (SQLite-compatible error) Format: “ON clause references tables to its right” This error occurs when a JOIN ON clause references a table that hasn’t been introduced yet (appears later in the FROM clause).
NoSuchColumn
No such column (SQLite-compatible error) Format: “no such column: X” or “no such column: table.column”
NoSuchFunction
No such function (SQLite-compatible error) Format: “no such function: X”
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 ReadOnlyError
impl From<ExecutorError> for ReadOnlyError
Source§fn from(e: ExecutorError) -> Self
fn from(e: ExecutorError) -> 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