pub enum DataFusionError {
ArrowError(ArrowError),
IoError(Error),
SQL(ParserError),
NotImplemented(String),
Internal(String),
Plan(String),
SchemaError(SchemaError),
Execution(String),
ResourcesExhausted(String),
External(Box<dyn Error + Send + Sync>),
Context(String, Box<DataFusionError>),
}
Expand description
DataFusion error
Variants
ArrowError(ArrowError)
Error returned by arrow.
IoError(Error)
Error associated to I/O operations and associated traits.
SQL(ParserError)
Error returned when SQL is syntactically incorrect.
NotImplemented(String)
Error returned on a branch that we know it is possible but to which we still have no implementation for. Often, these errors are tracked in our issue tracker.
Internal(String)
Error returned as a consequence of an error in DataFusion. This error should not happen in normal usage of DataFusion.
Plan(String)
This error happens whenever a plan is not valid. Examples include impossible casts.
SchemaError(SchemaError)
This error happens with schema-related errors, such as schema inference not possible and non-unique column names.
Execution(String)
Error returned during execution of the query. Examples include files not found, errors in parsing certain types.
ResourcesExhausted(String)
This error is thrown when a consumer cannot acquire memory from the Memory Manager we can just cancel the execution of the partition.
External(Box<dyn Error + Send + Sync>)
Errors originating from outside DataFusion’s core codebase. For example, a custom S3Error from the crate datafusion-objectstore-s3
Context(String, Box<DataFusionError>)
Error with additional context
Trait Implementations
sourceimpl Debug for DataFusionError
impl Debug for DataFusionError
sourceimpl Display for DataFusionError
impl Display for DataFusionError
sourceimpl Error for DataFusionError
impl Error for DataFusionError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ArrowError> for DataFusionError
impl From<ArrowError> for DataFusionError
sourcefn from(e: ArrowError) -> Self
fn from(e: ArrowError) -> Self
Converts to this type from the input type.
sourceimpl From<DataFusionError> for ArrowError
impl From<DataFusionError> for ArrowError
sourcefn from(e: DataFusionError) -> Self
fn from(e: DataFusionError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for DataFusionError
impl From<Error> for DataFusionError
sourceimpl From<ParserError> for DataFusionError
impl From<ParserError> for DataFusionError
sourcefn from(e: ParserError) -> Self
fn from(e: ParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for DataFusionError
impl Send for DataFusionError
impl Sync for DataFusionError
impl Unpin for DataFusionError
impl !UnwindSafe for DataFusionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more