pub struct SchemaInferenceOptions {
pub int96_coerce_to_timeunit: TimeUnit,
}
Expand description
Options when inferring schemas from Parquet
Fields§
§int96_coerce_to_timeunit: TimeUnit
When inferring schemas from the Parquet INT96 timestamp type, this is the corresponding TimeUnit in the inferred Arrow Timestamp type.
This defaults to TimeUnit::Nanosecond
, but INT96 timestamps outside of the range of years 1678-2262,
will overflow when parsed as Timestamp(TimeUnit::Nanosecond)
. Setting this to a lower resolution
(e.g. TimeUnit::Milliseconds) will result in loss of precision, but support a larger range of dates
without overflowing when parsing the data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaInferenceOptions
impl RefUnwindSafe for SchemaInferenceOptions
impl Send for SchemaInferenceOptions
impl Sync for SchemaInferenceOptions
impl Unpin for SchemaInferenceOptions
impl UnwindSafe for SchemaInferenceOptions
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
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>
Converts
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>
Converts
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