pub enum ArrowArrayToColumnConversionError {
ArrayContainsNulls,
UnsupportedType(DataType),
DecimalConversionFailed(i256),
IndexOutOfBounds(usize, usize),
ConversionError(ConversionError),
TimestampConversionError(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(DataType)
This error occurs when trying to convert from an unsupported arrow type.
DecimalConversionFailed(i256)
This error occurs when trying to convert from an i256 to a Scalar.
IndexOutOfBounds(usize, usize)
This error occurs when the specified range is out of the bounds of the array.
ConversionError(ConversionError)
Variant for conversion errors
TimestampConversionError(PoSQLTimestampError)
Using TimeError to handle all time-related errors
Trait Implementations§
source§impl Error for ArrowArrayToColumnConversionError
impl Error for ArrowArrayToColumnConversionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConversionError> for ArrowArrayToColumnConversionError
impl From<ConversionError> for ArrowArrayToColumnConversionError
source§fn from(source: ConversionError) -> Self
fn from(source: ConversionError) -> Self
Converts to this type from the input type.
source§impl From<PoSQLTimestampError> for ArrowArrayToColumnConversionError
impl From<PoSQLTimestampError> for ArrowArrayToColumnConversionError
source§fn from(source: PoSQLTimestampError) -> Self
fn from(source: 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
This method 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> 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