pub enum DeltaTableError {
Show 38 variants
KernelError(Error),
Protocol {
source: ProtocolError,
},
ObjectStore {
source: Error,
},
Parquet {
source: ParquetError,
},
Arrow {
source: ArrowError,
},
InvalidJsonLog {
json_err: Error,
line: String,
version: i64,
},
InvalidStatsJson {
json_err: Error,
},
InvalidInvariantJson {
json_err: Error,
line: String,
},
InvalidVersion(i64),
MissingDataFile {
source: Error,
path: String,
},
InvalidDateTimeString {
source: ParseError,
},
InvalidData {
violations: Vec<String>,
},
NotATable(String),
NoMetadata,
NoSchema,
LoadPartitions,
SchemaMismatch {
msg: String,
},
PartitionError {
partition: String,
},
InvalidPartitionFilter {
partition_filter: String,
},
ColumnsNotPartitioned {
nonpartitioned_columns: Vec<String>,
},
Io {
source: Error,
},
CommitValidation {
source: CommitBuilderError,
},
Transaction {
source: TransactionError,
},
VersionAlreadyExists(i64),
VersionMismatch(i64, i64),
MissingFeature {
feature: &'static str,
url: String,
},
InvalidTableLocation(String),
SerializeLogJson {
json_err: Error,
},
SerializeSchemaJson {
json_err: Error,
},
Generic(String),
GenericError {
source: Box<dyn Error + Send + Sync + 'static>,
},
Kernel {
source: Error,
},
MetadataError(String),
NotInitialized,
NotInitializedWithFiles(String),
ChangeDataNotRecorded {
version: i64,
start: i64,
end: i64,
},
ChangeDataNotEnabled {
version: i64,
},
ChangeDataInvalidVersionRange {
start: i64,
end: i64,
},
}
Expand description
Delta Table specific error
Variants§
KernelError(Error)
Protocol
Fields
source: ProtocolError
ObjectStore
Error returned when reading the delta log object failed.
Parquet
Error returned when parsing checkpoint parquet.
Fields
source: ParquetError
Parquet error details returned when reading the checkpoint failed.
Arrow
Error returned when converting the schema in Arrow format failed.
Fields
source: ArrowError
Arrow error details returned when converting the schema in Arrow format failed
InvalidJsonLog
Error returned when the log record has an invalid JSON.
Fields
InvalidStatsJson
Error returned when the log contains invalid stats JSON.
InvalidInvariantJson
Error returned when the log contains invalid stats JSON.
Fields
InvalidVersion(i64)
Error returned when the DeltaTable has an invalid version.
MissingDataFile
Error returned when the DeltaTable has no data files.
Fields
InvalidDateTimeString
Error returned when the datetime string is invalid for a conversion.
Fields
source: ParseError
Parse error details returned of the datetime string parse error.
InvalidData
Error returned when attempting to write bad data to the table
NotATable(String)
Error returned when it is not a DeltaTable.
NoMetadata
Error returned when no metadata was found in the DeltaTable.
NoSchema
Error returned when no schema was found in the DeltaTable.
LoadPartitions
Error returned when no partition was found in the DeltaTable.
SchemaMismatch
Error returned when writes are attempted with data that doesn’t match the schema of the table
PartitionError
Error returned when a partition is not formatted as a Hive Partition.
InvalidPartitionFilter
Error returned when a invalid partition filter was found.
ColumnsNotPartitioned
Error returned when a partition filter uses a nonpartitioned column.
Fields
Io
Error returned when a line from log record is invalid.
CommitValidation
Error raised while preparing a commit
Fields
source: CommitBuilderError
The source error
Transaction
Error raised while commititng transaction
Fields
source: TransactionError
The source error
VersionAlreadyExists(i64)
Error returned when transaction is failed to be committed because given version already exists.
VersionMismatch(i64, i64)
Error returned when user attempts to commit actions that don’t belong to the next version.
MissingFeature
A Feature is missing to perform operation
InvalidTableLocation(String)
A Feature is missing to perform operation
SerializeLogJson
Generic Delta Table error
SerializeSchemaJson
Generic Delta Table error
Generic(String)
Generic Delta Table error
GenericError
Generic Delta Table error
Kernel
MetadataError(String)
NotInitialized
NotInitializedWithFiles(String)
ChangeDataNotRecorded
ChangeDataNotEnabled
ChangeDataInvalidVersionRange
Implementations§
Trait Implementations§
Source§impl Debug for DeltaTableError
impl Debug for DeltaTableError
Source§impl Display for DeltaTableError
impl Display for DeltaTableError
Source§impl Error for DeltaTableError
impl Error for DeltaTableError
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
Source§impl From<ArrowError> for DeltaTableError
impl From<ArrowError> for DeltaTableError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Source§impl From<CommitBuilderError> for DeltaTableError
impl From<CommitBuilderError> for DeltaTableError
Source§fn from(err: CommitBuilderError) -> Self
fn from(err: CommitBuilderError) -> Self
Source§impl From<DataFusionError> for DeltaTableError
impl From<DataFusionError> for DeltaTableError
Source§fn from(err: DataFusionError) -> Self
fn from(err: DataFusionError) -> Self
Source§impl From<DeltaTableError> for DataFusionError
impl From<DeltaTableError> for DataFusionError
Source§fn from(err: DeltaTableError) -> Self
fn from(err: DeltaTableError) -> Self
Source§impl From<Error> for DeltaTableError
impl From<Error> for DeltaTableError
Source§impl From<Error> for DeltaTableError
impl From<Error> for DeltaTableError
Source§fn from(source: ObjectStoreError) -> Self
fn from(source: ObjectStoreError) -> Self
Source§impl From<Error> for DeltaTableError
impl From<Error> for DeltaTableError
Source§impl From<Error> for DeltaTableError
impl From<Error> for DeltaTableError
Source§impl From<Error> for DeltaTableError
impl From<Error> for DeltaTableError
Source§impl From<Error> for DeltaTableError
impl From<Error> for DeltaTableError
Source§impl From<ParquetError> for DeltaTableError
impl From<ParquetError> for DeltaTableError
Source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
Source§impl From<ParseError> for DeltaTableError
impl From<ParseError> for DeltaTableError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<ProtocolError> for DeltaTableError
impl From<ProtocolError> for DeltaTableError
Source§fn from(value: ProtocolError) -> Self
fn from(value: ProtocolError) -> Self
Source§impl From<TransactionError> for DeltaTableError
impl From<TransactionError> for DeltaTableError
Source§fn from(err: TransactionError) -> Self
fn from(err: TransactionError) -> Self
Auto Trait Implementations§
impl Freeze for DeltaTableError
impl !RefUnwindSafe for DeltaTableError
impl Send for DeltaTableError
impl Sync for DeltaTableError
impl Unpin for DeltaTableError
impl !UnwindSafe for DeltaTableError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
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>
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