Skip to content

Commit b90bac5

Browse files
committed
WIP: SessionConfig::new
1 parent fb4360f commit b90bac5

File tree

1 file changed

+3
-2
lines changed
  • rust/cubestore/cubestore/src/queryplanner

1 file changed

+3
-2
lines changed

rust/cubestore/cubestore/src/queryplanner/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ use datafusion::physical_plan::{
8787
collect, DisplayAs, DisplayFormatType, ExecutionMode, ExecutionPlan, Partitioning,
8888
PlanProperties, SendableRecordBatchStream,
8989
};
90-
use datafusion::prelude::SessionContext;
90+
use datafusion::prelude::{SessionConfig, SessionContext};
9191
use datafusion::sql::parser::Statement;
9292
use datafusion::sql::planner::{ContextProvider, SqlToRel};
9393
use datafusion::{cube_ext, datasource::TableProvider};
@@ -246,7 +246,8 @@ impl QueryPlannerImpl {
246246

247247
impl QueryPlannerImpl {
248248
pub fn make_execution_context() -> SessionContext {
249-
let context = SessionContext::new();
249+
let config = SessionConfig::new();
250+
let context = SessionContext::new_with_config(config);
250251
// TODO upgrade DF: build SessionContexts consistently -- that now means check all appropriate SessionContext constructors use this make_execution_context or execution_context function.
251252
for udaf in registerable_aggregate_udfs() {
252253
context.register_udaf(udaf);

0 commit comments

Comments
 (0)