MCPcopy Create free account
hub / github.com/apache/datafusion / update_config

Method update_config

benchmarks/src/util/options.rs:82–97  ·  view source on GitHub ↗

Modify the existing config appropriately

(&self, mut config: SessionConfig)

Source from the content-addressed store, hash-verified

80
81 /// Modify the existing config appropriately
82 pub fn update_config(&self, mut config: SessionConfig) -> SessionConfig {
83 if let Some(batch_size) = self.batch_size {
84 config = config.with_batch_size(batch_size);
85 }
86
87 if let Some(partitions) = self.partitions {
88 config = config.with_target_partitions(partitions);
89 }
90
91 if let Some(sort_spill_reservation_bytes) = self.sort_spill_reservation_bytes {
92 config =
93 config.with_sort_spill_reservation_bytes(sort_spill_reservation_bytes);
94 }
95
96 config
97 }
98
99 /// Return an appropriately configured `RuntimeEnvBuilder`
100 pub fn runtime_env_builder(&self) -> Result<RuntimeEnvBuilder> {

Callers 1

configMethod · 0.80

Calls 3

with_batch_sizeMethod · 0.45

Tested by

no test coverage detected