Skip to content

Commit

Permalink
Make dataframe.task_ctx public (apache#7183)
Browse files Browse the repository at this point in the history
  • Loading branch information
milenkovicm authored Aug 3, 2023
1 parent 2af3ae7 commit c3dbe43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/core/src/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ impl DataFrame {
Ok(pretty::print_batches(&results)?)
}

fn task_ctx(&self) -> TaskContext {
/// Get a new TaskContext to run in this session
pub fn task_ctx(&self) -> TaskContext {
TaskContext::from(&self.session_state)
}

Expand Down

0 comments on commit c3dbe43

Please sign in to comment.