pub enum DfOlapError {
DataFusion(DataFusionError),
Arrow(ArrowError),
Parquet(ParquetError),
TableNotFound(String),
SchemaMismatch(String),
Io(Error),
Join(String),
Other(String),
}Expand description
Errors that can occur in the DataFusion OLAP backend.
This enum consolidates errors from DataFusion, Arrow, Parquet, I/O, and
(when the cloud-storage feature is enabled) the object_store crate.
Variants§
DataFusion(DataFusionError)
An error originating inside the DataFusion query engine.
Arrow(ArrowError)
An Arrow-level error (e.g. schema mismatch during array construction).
Parquet(ParquetError)
A Parquet serialisation or deserialisation error.
TableNotFound(String)
A query or DML statement referenced a table that has not been registered.
SchemaMismatch(String)
The supplied data schema does not match the registered table schema.
Io(Error)
A file-system I/O error (e.g. creating the table directory or writing a file).
Join(String)
A tokio::task::JoinError from a spawn_blocking call.
Other(String)
A catch-all error for situations not covered by the other variants.
Trait Implementations§
Source§impl Debug for DfOlapError
impl Debug for DfOlapError
Source§impl Display for DfOlapError
impl Display for DfOlapError
Source§impl Error for DfOlapError
impl Error for DfOlapError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ArrowError> for DfOlapError
impl From<ArrowError> for DfOlapError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<DataFusionError> for DfOlapError
impl From<DataFusionError> for DfOlapError
Source§fn from(source: DataFusionError) -> Self
fn from(source: DataFusionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DfOlapError
impl From<Error> for DfOlapError
Source§impl From<ParquetError> for DfOlapError
impl From<ParquetError> for DfOlapError
Source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DfOlapError
impl !RefUnwindSafe for DfOlapError
impl Send for DfOlapError
impl Sync for DfOlapError
impl Unpin for DfOlapError
impl UnsafeUnpin for DfOlapError
impl !UnwindSafe for DfOlapError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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