pub struct SessionRuntimeConfig {
pub pyspark_compat: PysparkCompat,
pub ansi_enabled: bool,
pub disable_map_key_normalization: bool,
pub infer_map_type_from_first_pair: bool,
pub infer_array_type_from_first_element: bool,
pub legacy_postgres_datetime_mapping: bool,
pub legacy_mysql_datetime_mapping: bool,
pub legacy_oracle_timestamp_mapping: bool,
pub legacy_mssqlserver_datetime_mapping: bool,
pub legacy_db2_datetime_mapping: bool,
}Expand description
Execution semantics derived from spark.conf and compat profile.
Fields§
§pyspark_compat: PysparkCompat§ansi_enabled: bool§disable_map_key_normalization: bool§infer_map_type_from_first_pair: bool§infer_array_type_from_first_element: bool§legacy_postgres_datetime_mapping: boolPySpark 3.5 JDBC datetime mapping for PostgreSQL (legacy restore).
legacy_mysql_datetime_mapping: boolPySpark 3.5 JDBC type mapping for MySQL/MariaDB (legacy restore).
legacy_oracle_timestamp_mapping: boolPySpark 3.5 JDBC timestamp write mapping for Oracle (legacy restore).
legacy_mssqlserver_datetime_mapping: boolPySpark 3.5 JDBC type mapping for SQL Server (legacy restore).
legacy_db2_datetime_mapping: boolPySpark 3.5 JDBC type mapping for DB2 (legacy restore).
Implementations§
Source§impl SessionRuntimeConfig
impl SessionRuntimeConfig
Sourcepub fn for_compat(compat: PysparkCompat) -> Self
pub fn for_compat(compat: PysparkCompat) -> Self
Bundle defaults for a compatibility profile.
Sourcepub fn from_session_map(map: &HashMap<String, String>) -> Self
pub fn from_session_map(map: &HashMap<String, String>) -> Self
Parse from session config map (and optional env compat before session is built).
Sourcepub fn apply_profile_to_map(&self, map: &mut HashMap<String, String>)
pub fn apply_profile_to_map(&self, map: &mut HashMap<String, String>)
Apply profile bundle keys into a session config map (used when setting compat).
Sourcepub fn set_compat_profile(
map: &mut HashMap<String, String>,
compat: PysparkCompat,
)
pub fn set_compat_profile( map: &mut HashMap<String, String>, compat: PysparkCompat, )
Apply compat profile and write bundled keys into the map.
Sourcepub fn compat_from_env() -> Option<PysparkCompat>
pub fn compat_from_env() -> Option<PysparkCompat>
Read compat from environment (SPARKLESS_PYSPARK_COMPAT).
Trait Implementations§
Source§impl Clone for SessionRuntimeConfig
impl Clone for SessionRuntimeConfig
Source§fn clone(&self) -> SessionRuntimeConfig
fn clone(&self) -> SessionRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionRuntimeConfig
impl Debug for SessionRuntimeConfig
Source§impl Default for SessionRuntimeConfig
impl Default for SessionRuntimeConfig
impl Eq for SessionRuntimeConfig
Source§impl PartialEq for SessionRuntimeConfig
impl PartialEq for SessionRuntimeConfig
Source§fn eq(&self, other: &SessionRuntimeConfig) -> bool
fn eq(&self, other: &SessionRuntimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionRuntimeConfig
Auto Trait Implementations§
impl Freeze for SessionRuntimeConfig
impl RefUnwindSafe for SessionRuntimeConfig
impl Send for SessionRuntimeConfig
impl Sync for SessionRuntimeConfig
impl Unpin for SessionRuntimeConfig
impl UnsafeUnpin for SessionRuntimeConfig
impl UnwindSafe for SessionRuntimeConfig
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