#[non_exhaustive]pub enum OwnedArrowConversionError {
UnsupportedType {
datatype: DataType,
},
DuplicateIdentifiers,
FieldParseFail {
source: ParseError,
},
InvalidTable {
source: OwnedTableError,
},
NullNotSupportedYet,
TimestampConversionError {
source: PoSQLTimestampError,
},
}
Expand description
Errors cause by conversions between Arrow and owned types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedType
This error occurs when trying to convert from an unsupported arrow type.
DuplicateIdentifiers
This error occurs when trying to convert from a record batch with duplicate identifiers (e.g. "a"
and "A"
).
FieldParseFail
This error occurs when convering from a record batch name to an identifier fails. (Which may my impossible.)
Fields
§
source: ParseError
The underlying source error
InvalidTable
This error occurs when creating an owned table fails, which should only occur when there are zero columns.
Fields
§
source: OwnedTableError
The underlying source error
NullNotSupportedYet
This error occurs when trying to convert from an Arrow array with nulls.
TimestampConversionError
Using TimeError to handle all time-related errors
Fields
§
source: PoSQLTimestampError
The underlying source error
Trait Implementations§
source§impl Debug for OwnedArrowConversionError
impl Debug for OwnedArrowConversionError
source§impl Display for OwnedArrowConversionError
impl Display for OwnedArrowConversionError
source§impl Error for OwnedArrowConversionError
impl Error for OwnedArrowConversionError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl ErrorCompat for OwnedArrowConversionError
impl ErrorCompat for OwnedArrowConversionError
source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moresource§impl From<ParseError> for OwnedArrowConversionError
impl From<ParseError> for OwnedArrowConversionError
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<PoSQLTimestampError> for OwnedArrowConversionError
impl From<PoSQLTimestampError> for OwnedArrowConversionError
source§fn from(error: PoSQLTimestampError) -> Self
fn from(error: PoSQLTimestampError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnedArrowConversionError
impl RefUnwindSafe for OwnedArrowConversionError
impl Send for OwnedArrowConversionError
impl Sync for OwnedArrowConversionError
impl Unpin for OwnedArrowConversionError
impl UnwindSafe for OwnedArrowConversionError
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)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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