pub enum AnalyzerErrorKind {
Show 23 variants
TableNotFound {
name: String,
},
ColumnNotFound {
name: String,
table: Option<String>,
},
AmbiguousColumn {
name: String,
tables: Vec<String>,
},
FunctionNotFound {
name: String,
},
WrongArgumentCount {
function: String,
expected_min: usize,
expected_max: Option<usize>,
actual: usize,
},
TypeMismatch {
expected: SqlType,
actual: SqlType,
context: String,
},
TypesNotComparable {
left: SqlType,
right: SqlType,
},
InvalidAggregateUse {
function: String,
reason: String,
},
InvalidWindowUse {
function: String,
reason: String,
},
DuplicateAlias {
name: String,
},
DuplicateGroupByColumn {
name: String,
},
NonAggregatedColumn {
column: String,
},
OrderByNotInSelect {
column: String,
},
HavingWithoutGroupBy,
InvalidSubquery {
reason: String,
},
DivisionByZero,
InvalidCast {
from: SqlType,
to: SqlType,
},
InvalidDateTimeLiteral {
value: String,
expected_type: String,
},
DuplicateCte {
name: String,
},
InvalidRecursiveCte {
reason: String,
},
StarNotAllowed {
context: String,
},
SetOperationColumnMismatch {
left: usize,
right: usize,
},
Other {
message: String,
},
}Expand description
Analyzer error kinds.
Variants§
TableNotFound
Table not found in catalog.
ColumnNotFound
Column not found.
AmbiguousColumn
Ambiguous column reference.
FunctionNotFound
Function not found.
WrongArgumentCount
Wrong number of arguments to function.
TypeMismatch
Type mismatch in expression.
TypesNotComparable
Types are not comparable.
InvalidAggregateUse
Invalid use of aggregate function.
InvalidWindowUse
Invalid use of window function.
DuplicateAlias
Duplicate alias.
DuplicateGroupByColumn
Duplicate column in GROUP BY.
NonAggregatedColumn
Non-aggregated column in SELECT with GROUP BY.
OrderByNotInSelect
ORDER BY column not in SELECT (when DISTINCT is used).
HavingWithoutGroupBy
Invalid HAVING clause (no GROUP BY).
InvalidSubquery
Invalid subquery.
DivisionByZero
Division by zero (constant folding).
InvalidCast
Invalid CAST.
InvalidDateTimeLiteral
Invalid date/time literal.
DuplicateCte
CTE name conflict.
InvalidRecursiveCte
Recursive CTE without UNION ALL.
StarNotAllowed
Star (*) not allowed in this context.
SetOperationColumnMismatch
EXCEPT/INTERSECT column count mismatch.
Other
Unknown error.
Trait Implementations§
Source§impl Clone for AnalyzerErrorKind
impl Clone for AnalyzerErrorKind
Source§fn clone(&self) -> AnalyzerErrorKind
fn clone(&self) -> AnalyzerErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnalyzerErrorKind
impl RefUnwindSafe for AnalyzerErrorKind
impl Send for AnalyzerErrorKind
impl Sync for AnalyzerErrorKind
impl Unpin for AnalyzerErrorKind
impl UnwindSafe for AnalyzerErrorKind
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