#[non_exhaustive]pub enum Invariant {
Show 14 variants
Depth,
Unsupported,
Arrays,
Buffers,
Rows,
ChildLength,
NullCount,
Validity,
BufferLength,
Size,
OffsetOrder,
OffsetRange,
DictionaryIndex,
ViewBuffer,
}Expand description
The rule an array broke.
This is an enum rather than a string because a host that wants to count refusals by kind, or treat one kind differently from another, should not have to match on prose. The prose is in the detail, which is written for whoever has to go and find the decoder that produced this.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Depth
The schema nests deeper than this crate will walk.
Unsupported
The type is one this crate does not know how to check.
Arrays
The batch does not have the number of arrays the schema calls for.
Buffers
The batch does not have the number of buffers the schema calls for.
Rows
A top level array is not as long as the batch says it is.
ChildLength
A child array is shorter than its parent needs it to be.
NullCount
The declared null count is not what the validity bitmap says.
Validity
The validity bitmap has fewer bits than the array has slots.
BufferLength
A buffer is shorter than the array’s length requires.
Size
A length and a width multiply to more than this host can address.
OffsetOrder
Offsets run backwards.
OffsetRange
An offset points past the end of the thing it indexes.
DictionaryIndex
A dictionary key is not a slot in the dictionary.
ViewBuffer
A view points at a data buffer that is not there, or past the end of one that is.