Skip to content

Commit

Permalink
Fix SessionContext execute. (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebrooks-8451 authored Apr 27, 2023
1 parent e1a8a3c commit 6642660
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,14 +712,7 @@ impl PySessionContext {
part: usize,
py: Python,
) -> PyResult<PyRecordBatchStream> {
let ctx = TaskContext::new(
None,
"session_id".to_string(),
SessionConfig::new(),
HashMap::new(),
HashMap::new(),
Arc::new(RuntimeEnv::default()),
);
let ctx: TaskContext = TaskContext::from(&self.ctx.state());
// create a Tokio runtime to run the async code
let rt = &get_tokio_runtime(py).0;
let plan = plan.plan.clone();
Expand Down

0 comments on commit 6642660

Please sign in to comment.