pub enum AisleError {
UnsupportedExpr {
expr_type: String,
},
NotAColumn {
found: String,
},
NotALiteral {
found: String,
},
ColumnNotFound {
column_name: String,
},
TypeCastError {
literal_type: DataType,
target_type: DataType,
reason: String,
},
NegatedNotSupported {
predicate_type: String,
},
UnsupportedOperator {
operator: String,
},
AmbiguousColumn {
column_name: String,
candidates: Vec<String>,
},
}Expand description
Errors that can occur during predicate compilation
These errors indicate which parts of a predicate cannot be evaluated against Parquet metadata for pruning purposes.
Variants§
UnsupportedExpr
The expression type is not supported for metadata pruning
NotAColumn
Column reference could not be extracted from expression
NotALiteral
Literal value could not be extracted from expression
ColumnNotFound
Column not found in the provided schema
TypeCastError
Type mismatch when casting literal to column type
Uses typed DataType fields for programmatic inspection and better error messages. Users can pattern match on specific type mismatches if needed.
Fields
NegatedNotSupported
Negated predicates are not supported (e.g., NOT BETWEEN, NOT IN)
UnsupportedOperator
Binary operator is not supported for metadata pruning
AmbiguousColumn
Column name is ambiguous (multiple fields with the same leaf name)
Trait Implementations§
Source§impl Clone for AisleError
impl Clone for AisleError
Source§fn clone(&self) -> AisleError
fn clone(&self) -> AisleError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AisleError
impl Debug for AisleError
Source§impl Display for AisleError
impl Display for AisleError
Source§impl Error for AisleError
impl Error for AisleError
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
use the Display impl or to_string()