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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WpArrowError
impl Debug for WpArrowError
Source§impl Display for WpArrowError
impl Display for WpArrowError
impl Eq 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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()