This is an automated email from the ASF dual-hosted git repository.

xudong963 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new c3dbe436a0 Make dataframe.task_ctx public (#7183)
c3dbe436a0 is described below

commit c3dbe436a09ca179dc8370d06ab0875ee770a2ce
Author: Marko Milenković <[email protected]>
AuthorDate: Thu Aug 3 02:41:26 2023 +0100

    Make dataframe.task_ctx public (#7183)
---
 datafusion/core/src/dataframe.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/datafusion/core/src/dataframe.rs b/datafusion/core/src/dataframe.rs
index e1109b7fc4..ae93397451 100644
--- a/datafusion/core/src/dataframe.rs
+++ b/datafusion/core/src/dataframe.rs
@@ -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)
     }
 

Reply via email to