pub enum ArrowArrayToColumnConversionError {
ArrayContainsNulls,
UnsupportedType {
datatype: DataType,
},
DecimalError {
source: DecimalError,
},
DecimalConversionFailed {
number: i256,
},
IndexOutOfBounds {
len: usize,
index: usize,
},
TimestampConversionError {
source: PoSQLTimestampError,
},
}
Expand description
Errors caused by conversions between Arrow and owned types.
Variants§
ArrayContainsNulls
This error occurs when an array contains a non-zero number of null elements
UnsupportedType
This error occurs when trying to convert from an unsupported arrow type.
DecimalError
Variant for decimal errors
Fields
§
source: DecimalError
The underlying source error
DecimalConversionFailed
This error occurs when trying to convert from an i256 to a Scalar.
IndexOutOfBounds
This error occurs when the specified range is out of the bounds of the array.
TimestampConversionError
Using TimeError to handle all time-related errors
Fields
§
source: PoSQLTimestampError
The underlying source error
Trait Implementations§
source§impl Error for ArrowArrayToColumnConversionError
impl Error for ArrowArrayToColumnConversionError
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 ArrowArrayToColumnConversionError
impl ErrorCompat for ArrowArrayToColumnConversionError
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<DecimalError> for ArrowArrayToColumnConversionError
impl From<DecimalError> for ArrowArrayToColumnConversionError
source§fn from(error: DecimalError) -> Self
fn from(error: DecimalError) -> Self
Converts to this type from the input type.
source§impl From<PoSQLTimestampError> for ArrowArrayToColumnConversionError
impl From<PoSQLTimestampError> for ArrowArrayToColumnConversionError
source§fn from(error: PoSQLTimestampError) -> Self
fn from(error: PoSQLTimestampError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ArrowArrayToColumnConversionError
impl PartialEq for ArrowArrayToColumnConversionError
source§fn eq(&self, other: &ArrowArrayToColumnConversionError) -> bool
fn eq(&self, other: &ArrowArrayToColumnConversionError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ArrowArrayToColumnConversionError
Auto Trait Implementations§
impl Freeze for ArrowArrayToColumnConversionError
impl RefUnwindSafe for ArrowArrayToColumnConversionError
impl Send for ArrowArrayToColumnConversionError
impl Sync for ArrowArrayToColumnConversionError
impl Unpin for ArrowArrayToColumnConversionError
impl UnwindSafe for ArrowArrayToColumnConversionError
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