File tree Expand file tree Collapse file tree
crates/datafusion-app/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,16 +91,23 @@ impl ExecutionContext {
9191 // Ideally we would only use `enable_time` but we are still doing
9292 // some network requests as part of planning / execution which require network
9393 // functionality.
94-
9594 let runtime_builder = tokio:: runtime:: Builder :: new_multi_thread ( ) ;
9695 let dedicated_executor =
9796 DedicatedExecutor :: new ( "cpu_runtime" , config. clone ( ) , runtime_builder) ;
9897 executor = Some ( dedicated_executor)
9998 }
10099
101- #[ cfg( any( feature = "udfs-wasm" , feature = "observability" ) ) ]
100+ #[ cfg( any(
101+ feature = "udfs-wasm" ,
102+ feature = "observability" ,
103+ feature = "functions-json"
104+ ) ) ]
102105 let mut session_ctx = SessionContext :: new_with_state ( session_state) ;
103- #[ cfg( not( feature = "udfs-wasm" ) ) ]
106+ #[ cfg( all(
107+ not( feature = "udfs-wasm" ) ,
108+ not( feature = "observability" ) ,
109+ not( feature = "functions-json" )
110+ ) ) ]
104111 let session_ctx = SessionContext :: new_with_state ( session_state) ;
105112
106113 #[ cfg( feature = "functions-json" ) ]
You can’t perform that action at this time.
0 commit comments