#[non_exhaustive]pub enum DataError {
Show 14 variants
UnknownColumn(String),
UnsupportedKey(String),
UnsupportedColumn(String),
LiteralMismatch(String),
NotNumeric(String),
WindowSpan(String),
BucketWidth(String),
DuplicateName(String),
ColumnCount {
expected: usize,
found: usize,
},
ColumnMismatch {
column: usize,
},
NullKey {
row: usize,
},
KeyType,
TooManyRows,
Arrow(String),
}Expand description
Why a table or view operation was refused. Nothing changes when one is returned.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownColumn(String)
No column has this name.
UnsupportedKey(String)
The key column must hold integers or strings.
UnsupportedColumn(String)
Views and groups cannot read this column’s data type (lists, structs, binary, …).
LiteralMismatch(String)
A filter’s value or operation does not fit this column’s type (text compared with a
number, contains on a number).
NotNumeric(String)
Sums and means need an integer, decimal or float column; this one holds something else (text, booleans, dates, times).
WindowSpan(String)
A window’s span does not fit its column: a Duration goes with dates, times and
timestamps, a number (zero or more) with integers, decimals and floats.
BucketWidth(String)
A group’s bucket width does not fit its column: a Duration of at least one of its
units goes with dates, times and timestamps, a number of at least one unit with
integers and decimals, a finite number above zero with floats.
DuplicateName(String)
Two columns of a group spec’s result would have this name.
ColumnCount
The batch has a different number of columns.
ColumnMismatch
The batch’s column at this index has another name or data type.
NullKey
A row of the batch has no key.
KeyType
Keys to delete or find are not of the key column’s kind (text for a number key).
TooManyRows
More than 2^32 live keys, or rows in one batch.
Arrow(String)
Arrow could not build a batch: compacting a table, or assembling groups.
Trait Implementations§
impl Eq for DataError
Source§impl Error for DataError
impl Error for DataError
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()