pub enum DynViewError {
RowOutOfBounds {
row: usize,
len: usize,
},
ColumnOutOfBounds {
column: usize,
width: usize,
},
SchemaMismatch {
column: usize,
field: String,
expected: DataType,
actual: DataType,
},
TypeMismatch {
column: usize,
path: String,
expected: DataType,
actual: DataType,
},
UnexpectedNull {
column: usize,
path: String,
},
Invalid {
column: usize,
path: String,
message: String,
},
}Expand description
Errors that can occur when constructing dynamic views over Arrow data.
Variants§
RowOutOfBounds
Requested row index exceeded the batch length.
ColumnOutOfBounds
Requested column index exceeded the schema width.
SchemaMismatch
Column schema did not match the array data type present in the RecordBatch.
Fields
TypeMismatch
Array downcast failed due to an unexpected runtime type.
Fields
UnexpectedNull
Encountered a null value where a non-null was required.
Invalid
Invalid data encountered while materializing a view.
Trait Implementations§
Source§impl Debug for DynViewError
impl Debug for DynViewError
Source§impl Display for DynViewError
impl Display for DynViewError
Source§impl Error for DynViewError
impl Error for DynViewError
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()
Auto Trait Implementations§
impl Freeze for DynViewError
impl RefUnwindSafe for DynViewError
impl Send for DynViewError
impl Sync for DynViewError
impl Unpin for DynViewError
impl UnwindSafe for DynViewError
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