Skip to content

Commit 73dad68

Browse files
committed
refactor(native): use SessionStateBuilder::new_with_default_features
1 parent 6f4e2f9 commit 73dad68

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎native/src/lib.rs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,11 @@ fn build_session_context(
132132
{
133133
use datafusion::execution::SessionStateBuilder;
134134
use datafusion_spark::SessionStateBuilderSpark;
135-
// Order matters: `with_spark_features` runs after
136-
// `with_default_features` so Spark implementations override the
137-
// DataFusion built-ins of the same name.
138-
let state = SessionStateBuilder::new()
135+
// `with_spark_features` runs after the default features so Spark
136+
// implementations override the built-ins of the same name.
137+
let state = SessionStateBuilder::new_with_default_features()
139138
.with_config(config)
140139
.with_runtime_env(runtime_env)
141-
.with_default_features()
142140
.with_spark_features()
143141
.build();
144142
Ok(SessionContext::new_with_state(state))

0 commit comments

Comments
 (0)