pub enum TimeColumnError {
Missing {
column: String,
},
UnsupportedParquetType {
column: String,
physical: String,
logical: String,
},
UnsupportedArrowType {
column: String,
datatype: String,
},
}Expand description
Errors that can occur when locating or validating a timestamp column.
A timestamp column is required by the table’s time index specification to enable time-series range queries and coverage computation. This enum captures the various ways that validation can fail:
- The column may not exist in the schema.
- The column may exist but use a Parquet type that is not supported.
- The column may exist but use an Arrow type that is not supported.
Variants§
Missing
The specified time column was not found in the schema.
This typically indicates either a configuration mismatch (the table’s index spec references a column that doesn’t exist in the data) or a schema evolution issue (the column was removed in a later segment).
UnsupportedParquetType
The time column uses a Parquet physical/logical type pair that is not supported.
For example, the column might use an integer or string type instead of a timestamp type, or it might use a timestamp variant (e.g., nanoseconds) that the crate does not currently support.
Fields
UnsupportedArrowType
The time column uses an Arrow data type that is not supported.
This can occur when converting from Parquet to Arrow or when working directly with Arrow data. Supported types typically include timestamp variants with microsecond or millisecond precision.
Trait Implementations§
Source§impl Clone for TimeColumnError
impl Clone for TimeColumnError
Source§fn clone(&self) -> TimeColumnError
fn clone(&self) -> TimeColumnError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimeColumnError
impl Debug for TimeColumnError
Source§impl Display for TimeColumnError
impl Display for TimeColumnError
Source§impl Error for TimeColumnError
impl Error for TimeColumnError
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
Source§impl ErrorCompat for TimeColumnError
impl ErrorCompat for TimeColumnError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source. Read moreSource§impl PartialEq for TimeColumnError
impl PartialEq for TimeColumnError
impl Eq for TimeColumnError
impl StructuralPartialEq for TimeColumnError
Auto Trait Implementations§
impl Freeze for TimeColumnError
impl RefUnwindSafe for TimeColumnError
impl Send for TimeColumnError
impl Sync for TimeColumnError
impl Unpin for TimeColumnError
impl UnsafeUnpin for TimeColumnError
impl UnwindSafe for TimeColumnError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more