pub struct ParquetOptions {
pub compression: Option<String>,
pub merge_schema: Option<bool>,
pub datetime_rebase_mode: Option<String>,
pub int96_rebase_mode: Option<String>,
pub common: CommonFileOptions,
}
Expand description
A struct that represents options for configuring Parquet file parsing.
§Options
merge_schema
: Merge schemas from all Parquet files.datetime_rebase_mode
: Controls how Spark handles rebase of datetime fields.int96_rebase_mode
: Controls how Spark handles rebase of INT96 fields.common
: Common file options that are shared across multiple file formats.
§Example
let options = ParquetOptions::new()
.merge_schema(true)
.common.path_glob_filter("*.parquet".to_string())
.common.recursive_file_lookup(true);
let df = spark.read().parquet(["/path/to/parquet"], options)?;
Fields§
§compression: Option<String>
§merge_schema: Option<bool>
§datetime_rebase_mode: Option<String>
§int96_rebase_mode: Option<String>
§common: CommonFileOptions
Implementations§
Source§impl ParquetOptions
impl ParquetOptions
pub fn compression(self, value: &str) -> Self
pub fn merge_schema(self, value: bool) -> Self
pub fn datetime_rebase_mode(self, value: &str) -> Self
pub fn int96_rebase_mode(self, value: &str) -> Self
Trait Implementations§
Source§impl Clone for ParquetOptions
impl Clone for ParquetOptions
Source§fn clone(&self) -> ParquetOptions
fn clone(&self) -> ParquetOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ConfigOpts for ParquetOptions
impl ConfigOpts for ParquetOptions
Source§impl Debug for ParquetOptions
impl Debug for ParquetOptions
Auto Trait Implementations§
impl Freeze for ParquetOptions
impl RefUnwindSafe for ParquetOptions
impl Send for ParquetOptions
impl Sync for ParquetOptions
impl Unpin for ParquetOptions
impl UnwindSafe for ParquetOptions
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request