pub struct SparkCastOptions {
pub eval_mode: EvalMode,
pub timezone: String,
pub allow_incompat: bool,
pub allow_cast_unsigned_ints: bool,
pub is_adapting_schema: bool,
pub null_string: String,
}Expand description
Spark cast options
Fields§
§eval_mode: EvalModeSpark evaluation mode
timezone: StringWhen cast from/to timezone related types, we need timezone, which will be resolved with session local timezone by an analyzer in Spark.
allow_incompat: boolAllow casts that are supported but not guaranteed to be 100% compatible
allow_cast_unsigned_ints: boolSupport casting unsigned ints to signed ints (used by Parquet SchemaAdapter)
is_adapting_schema: boolWe also use the cast logic for adapting Parquet schemas, so this flag is used for that use case
null_string: StringString to use to represent null values
Implementations§
Trait Implementations§
Source§impl Clone for SparkCastOptions
impl Clone for SparkCastOptions
Source§fn clone(&self) -> SparkCastOptions
fn clone(&self) -> SparkCastOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparkCastOptions
impl Debug for SparkCastOptions
Source§impl Hash for SparkCastOptions
impl Hash for SparkCastOptions
Source§impl PartialEq for SparkCastOptions
impl PartialEq for SparkCastOptions
impl Eq for SparkCastOptions
impl StructuralPartialEq for SparkCastOptions
Auto Trait Implementations§
impl Freeze for SparkCastOptions
impl RefUnwindSafe for SparkCastOptions
impl Send for SparkCastOptions
impl Sync for SparkCastOptions
impl Unpin for SparkCastOptions
impl UnwindSafe for SparkCastOptions
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> 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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