pub enum WpArrowError {
UnsupportedDataType(String),
InvalidArrayInnerType(String),
EmptyFieldName,
MissingRequiredField {
field_name: String,
},
ArrowBuildError(String),
ValueConversionError {
field_name: String,
expected: String,
actual: String,
},
SchemaMismatch {
expected: usize,
actual: usize,
},
TimestampOverflow {
field_name: String,
},
ParseError {
field_name: String,
detail: String,
},
IpcEncodeError(String),
IpcDecodeError(String),
}Expand description
Errors that can occur during WPL-to-Arrow type conversion.
Variants§
UnsupportedDataType(String)
The given type name is not a recognized WPL data type.
InvalidArrayInnerType(String)
An array<...> type has an invalid or missing inner type.
EmptyFieldName
A field definition has an empty name.
MissingRequiredField
A required (non-nullable) field is missing from the record.
ArrowBuildError(String)
Wrapper for arrow::error::ArrowError (stored as String because ArrowError is not Clone/Eq).
ValueConversionError
A field value does not match the expected WpDataType.
SchemaMismatch
The number of FieldDefs does not match the number of columns in the RecordBatch.
TimestampOverflow
A NaiveDateTime value overflows the i64 nanosecond representation.
ParseError
Failed to parse a string value back into the expected type.
IpcEncodeError(String)
IPC encoding failed (wraps Arrow IPC writer errors).
IpcDecodeError(String)
IPC decoding failed (malformed frame, incomplete data, etc.).
Trait Implementations§
Source§impl Clone for WpArrowError
impl Clone for WpArrowError
Source§fn clone(&self) -> WpArrowError
fn clone(&self) -> WpArrowError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WpArrowError
impl Debug for WpArrowError
Source§impl Display for WpArrowError
impl Display for WpArrowError
Source§impl Error for WpArrowError
impl Error for WpArrowError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for WpArrowError
impl PartialEq for WpArrowError
impl Eq for WpArrowError
impl StructuralPartialEq for WpArrowError
Auto Trait Implementations§
impl Freeze for WpArrowError
impl RefUnwindSafe for WpArrowError
impl Send for WpArrowError
impl Sync for WpArrowError
impl Unpin for WpArrowError
impl UnsafeUnpin for WpArrowError
impl UnwindSafe for WpArrowError
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