#[non_exhaustive]pub enum Error {
Show 42 variants
Backtraced {
source: Box<Self>,
backtrace: Box<Backtrace>,
},
CheckpointWrite(String),
EngineDataType(String),
Extract(&'static str, &'static str),
Generic(String),
GenericError {
source: Box<dyn Error + Send + Sync + 'static>,
},
IOError(Error),
InternalError(String),
FileNotFound(String),
MissingColumn(String),
UnexpectedColumnType(String),
MissingData(String),
MissingVersion,
DeletionVector(String),
InvalidSelectionVector(String),
InvalidTransactionState(String),
InvalidUrl(ParseError),
MalformedJson(Error),
MissingMetadata,
MissingProtocol,
InvalidProtocol(String),
MissingMetadataAndProtocol,
ParseError(String, DataType),
JoinFailure(String),
Utf8Error(Utf8Error),
ParseIntError(ParseIntError),
InvalidColumnMappingMode(String),
InvalidTableLocation(String),
InvalidDecimal(String),
InvalidStructData(String),
InvalidExpressionEvaluation(String),
InvalidLogPath(String),
FileAlreadyExists(String),
Unsupported(String),
ChecksumWriteUnsupported(String),
ParseIntervalError(ParseIntervalError),
ChangeDataFeedUnsupported(Version),
ChangeDataFeedIncompatibleSchema(String, String),
InvalidCheckpoint(String),
LiteralExpressionTransformError(Error),
Schema(String),
StatsValidation(String),
}Expand description
All the types of errors that the kernel can run into
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Backtraced
This is an error that includes a backtrace. To have a particular type of error include such
backtrace (when RUST_BACKTRACE=1), annotate the error with #[error(transparent)] and then
add the error type and enum variant to the from_with_backtrace! macro invocation
below. See IOError for an example.
CheckpointWrite(String)
EngineDataType(String)
User tried to convert engine data to the wrong type
Extract(&'static str, &'static str)
Could not extract the specified type
Generic(String)
A generic error with a message
GenericError
A generic error wrapping another error
IOError(Error)
Some kind of std::io::Error
InternalError(String)
An internal error that means kernel found an unexpected situation, which is likely a bug
FileNotFound(String)
A specified file could not be found
MissingColumn(String)
A column was requested, but not found
UnexpectedColumnType(String)
A column was specified with a specific type, but it is not of that type
MissingData(String)
Data was expected, but not found
MissingVersion
A version for the delta table could not be found in the log
DeletionVector(String)
An error occurred while working with deletion vectors
InvalidSelectionVector(String)
A selection vector is larger than data length
InvalidTransactionState(String)
Transaction state is invalid for the requested operation
InvalidUrl(ParseError)
A specified URL was invalid
MalformedJson(Error)
serde encountered malformed json
MissingMetadata
There was no metadata action in the delta log
MissingProtocol
There was no protocol action in the delta log
InvalidProtocol(String)
Invalid protocol action was read from the log
MissingMetadataAndProtocol
Neither metadata nor protocol could be found in the delta log
ParseError(String, DataType)
A string failed to parse as the specified data type
JoinFailure(String)
A tokio executor failed to join a task
Utf8Error(Utf8Error)
Could not convert to string from utf-8
ParseIntError(ParseIntError)
Could not parse an integer
InvalidColumnMappingMode(String)
InvalidTableLocation(String)
Asked for a table at an invalid location
InvalidDecimal(String)
Precision or scale not compliant with delta specification
InvalidStructData(String)
Inconsistent data passed to struct scalar
InvalidExpressionEvaluation(String)
Expressions did not parse or evaluate correctly
InvalidLogPath(String)
Unable to parse the name of a log path
FileAlreadyExists(String)
The file already exists at the path, prohibiting a non-overwrite write
Unsupported(String)
Some functionality is currently unsupported
ChecksumWriteUnsupported(String)
Cannot write a version checksum (CRC) file for this snapshot
ParseIntervalError(ParseIntervalError)
Parsing error when attempting to deserialize an interval
ChangeDataFeedUnsupported(Version)
ChangeDataFeedIncompatibleSchema(String, String)
InvalidCheckpoint(String)
Invalid checkpoint files
LiteralExpressionTransformError(Error)
Error while transforming a schema + leaves into an Expression of literals
Schema(String)
Schema mismatch has occurred or invalid schema used somewhere
StatsValidation(String)
Validation error for file statistics (e.g., missing required clustering column stats)
Implementations§
Source§impl Error
impl Error
pub fn generic_err(source: impl Into<Box<dyn Error + Send + Sync>>) -> Self
pub fn generic(msg: impl ToString) -> Self
pub fn file_not_found(path: impl ToString) -> Self
pub fn missing_column(name: impl ToString) -> Self
pub fn unexpected_column_type(name: impl ToString) -> Self
pub fn missing_data(name: impl ToString) -> Self
pub fn deletion_vector(msg: impl ToString) -> Self
pub fn engine_data_type(msg: impl ToString) -> Self
pub fn join_failure(msg: impl ToString) -> Self
pub fn invalid_table_location(location: impl ToString) -> Self
pub fn invalid_column_mapping_mode(mode: impl ToString) -> Self
pub fn invalid_decimal(msg: impl ToString) -> Self
pub fn invalid_struct_data(msg: impl ToString) -> Self
pub fn invalid_expression(msg: impl ToString) -> Self
pub fn internal_error(msg: impl ToString) -> Self
pub fn invalid_protocol(msg: impl ToString) -> Self
pub fn invalid_transaction_state(msg: impl ToString) -> Self
pub fn unsupported(msg: impl ToString) -> Self
pub fn change_data_feed_unsupported(version: impl Into<Version>) -> Self
pub fn invalid_checkpoint(msg: impl ToString) -> Self
pub fn schema(msg: impl ToString) -> Self
pub fn stats_validation(msg: impl ToString) -> Self
pub fn with_backtrace(self) -> Self
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<Infallible> for Error
This impl is needed so the ? operator can auto-convert Result<T, Infallible> to
DeltaResult<T>. For example, TryFrom impls for infallible conversions use Infallible as
their error type, and this allows those results to be propagated with ? in functions
returning DeltaResult. The match is unreachable since Infallible has no variants.
impl From<Infallible> for Error
This impl is needed so the ? operator can auto-convert Result<T, Infallible> to
DeltaResult<T>. For example, TryFrom impls for infallible conversions use Infallible as
their error type, and this allows those results to be propagated with ? in functions
returning DeltaResult. The match is unreachable since Infallible has no variants.
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Source§impl From<ParseIntervalError> for Error
impl From<ParseIntervalError> for Error
Source§fn from(source: ParseIntervalError) -> Self
fn from(source: ParseIntervalError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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