ExecutorError

Enum ExecutorError 

Source
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

§column_name: String
§table_name: String
§searched_tables: Vec<String>
§available_columns: Vec<String>
§

InvalidTableQualifier

Fields

§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

Fields

§role: String
§privilege: String
§object: String
§

ColumnIndexOutOfBounds

Fields

§index: usize
§

TypeMismatch

Fields

§right: SqlValue
§

DivisionByZero

§

InvalidWhereClause(String)

§

UnsupportedExpression(String)

§

UnsupportedFeature(String)

§

StorageError(String)

§

SubqueryReturnedMultipleRows

Fields

§expected: usize
§actual: usize
§

SubqueryColumnCountMismatch

Fields

§expected: usize
§actual: usize
§

ColumnCountMismatch

Fields

§expected: usize
§provided: usize
§

CastError

Fields

§from_type: String
§to_type: String
§

TypeConversionError

Fields

§from: String
§

ConstraintViolation(String)

§

MultiplePrimaryKeys

§

CannotDropColumn(String)

§

ConstraintNotFound

Fields

§constraint_name: String
§table_name: String
§

ExpressionDepthExceeded

Expression evaluation exceeded maximum recursion depth This prevents stack overflow from deeply nested expressions or subqueries

Fields

§depth: usize
§max_depth: usize
§

QueryTimeoutExceeded

Query exceeded maximum execution time

Fields

§elapsed_seconds: u64
§max_seconds: u64
§

RowLimitExceeded

Query exceeded maximum row processing limit

Fields

§rows_processed: usize
§max_rows: usize
§

MemoryLimitExceeded

Query exceeded maximum memory limit

Fields

§used_bytes: usize
§max_bytes: usize
§

VariableNotFound

Variable not found in procedural context (with available variables)

Fields

§variable_name: String
§available_variables: Vec<String>
§

LabelNotFound(String)

Label not found in procedural context

§

SelectIntoRowCount

Procedural SELECT INTO returned wrong number of rows (must be exactly 1)

Fields

§expected: usize
§actual: usize
§

SelectIntoColumnCount

Procedural SELECT INTO column count doesn’t match variable count

Fields

§expected: usize
§actual: usize
§

ProcedureNotFound

Procedure not found (with suggestions)

Fields

§procedure_name: String
§schema_name: String
§available_procedures: Vec<String>
§

FunctionNotFound

Function not found (with suggestions)

Fields

§function_name: String
§schema_name: String
§available_functions: Vec<String>
§

ParameterCountMismatch

Parameter count mismatch with details

Fields

§routine_name: String
§routine_type: String
§expected: usize
§actual: usize
§parameter_signature: String
§

ParameterTypeMismatch

Parameter type mismatch with details

Fields

§parameter_name: String
§expected_type: String
§actual_type: String
§actual_value: String
§

TypeError(String)

Type error in expression evaluation

§

ArgumentCountMismatch

Function argument count mismatch

Fields

§expected: usize
§actual: usize
§

RecursionLimitExceeded

Recursion limit exceeded in function/procedure calls (with call stack)

Fields

§message: String
§call_stack: Vec<String>
§max_depth: usize
§

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

Fields

§field: String
§value_type: String
§

ArrowDowncastError

Arrow array downcast failed (columnar execution)

Fields

§expected_type: String
§context: String
§

ColumnarTypeMismatch

Type mismatch in columnar operations

Fields

§operation: String
§left_type: String
§right_type: Option<String>
§

SimdOperationFailed

SIMD operation failed (returned None or error)

Fields

§operation: String
§reason: String
§

ColumnarColumnNotFound

Column not found in batch by index

Fields

§column_index: usize
§batch_columns: usize
§

ColumnarColumnNotFoundByName

Column not found in batch by name

Fields

§column_name: String
§

ColumnarLengthMismatch

Column length mismatch in batch operations

Fields

§context: String
§expected: usize
§actual: usize
§

UnsupportedArrayType

Unsupported array type for columnar operation

Fields

§operation: String
§array_type: String
§

SpatialGeometryError

Invalid or incompatible geometry type in spatial function

Fields

§function_name: String
§message: String
§

SpatialOperationFailed

Spatial operation failed (distance, intersection, etc.)

Fields

§function_name: String
§message: String
§

SpatialArgumentError

Spatial function argument count or type mismatch

Fields

§function_name: String
§expected: String
§actual: String
§

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

Source§

fn clone(&self) -> ExecutorError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExecutorError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ExecutorError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ExecutorError

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<CatalogError> for ExecutorError

Source§

fn from(err: CatalogError) -> Self

Converts to this type from the input type.
Source§

impl From<ExecutorError> for SessionError

Source§

fn from(e: ExecutorError) -> Self

Converts to this type from the input type.
Source§

impl From<StorageError> for ExecutorError

Source§

fn from(err: StorageError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ExecutorError

Source§

fn eq(&self, other: &ExecutorError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ExecutorError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,