You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "niebayes (via GitHub)" <gi...@apache.org> on 2025/03/10 10:39:18 UTC

[PR] chore: add "expr_planners api [datafusion]

niebayes opened a new pull request, #15119:
URL: https://github.com/apache/datafusion/pull/15119

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   - Closes #.
   
   ## Rationale for this change
   
   <!--
    Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
    Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.  
   -->
   
   ## What changes are included in this PR?
   
   <!--
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   ## Are these changes tested?
   
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   
   ## Are there any user-facing changes?
   
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please add the `api change` label.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2009391285


##########
datafusion/core/src/execution/session_state.rs:
##########
@@ -1950,6 +1955,16 @@ mod tests {
     use super::{SessionContextProvider, SessionStateBuilder};
     use crate::datasource::MemTable;
     use crate::execution::context::SessionState;
+    use crate::{
+        common::assert_contains,
+        config::ConfigOptions,
+        datasource::{empty::EmptyTable, provider_as_source},
+        logical_expr::{
+            planner::ExprPlanner, AggregateUDF, ScalarUDF, TableSource, WindowUDF,
+        },
+        physical_plan::ExecutionPlan,
+        sql::{planner::ContextProvider, ResolvedTableReference, TableReference},
+    };

Review Comment:
   @Omega359 I have flatten all imports.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2712347513

   @alamb I wonder if we can remove the `register_expr_planners` and `expr_planners` from the `FunctionRegistry` trait. I have checked the codebase and they're only used by a test. And it's kind of weird as these methods don’t seem to align with the core responsibility of the trait. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r1988269733


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   @alamb Fixed CI. PTAL



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r1989022172


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   I don't understand how the code in this PR is any different than what is in on main



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2009375028


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   @Omega359 I agree. To align the types, I've made both functions return a Vec.
   I initially considered returning a slice, but SessionContext's design—wrapping SessionState in an RwLock—makes it impossible to return a reference to the temporary value.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #15119:
URL: https://github.com/apache/datafusion/pull/15119


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2009375028


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   @Omega359 I agree, it's better to align the types. I have made both return a slice.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "Omega359 (via GitHub)" <gi...@apache.org>.
Omega359 commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2007422753


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   I think it's ContextProvider that uses a slice vs Vec. Bit annoying the types are not aligned. SessionState uses `expr_planners: Vec<Arc<dyn ExprPlanner>>,`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r1988269129


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   Previously, it's the `FunctionRegistry::expr_planners` method gets called and a vector of expression planners is returned.
   Now, the `SessionState::expr_planners` takes precedence and a slice of expression planners is returned.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2728282880

   @alamb Sorry for late response, Some emergent personal matters have caused a delay.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "Omega359 (via GitHub)" <gi...@apache.org>.
Omega359 commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2007427604


##########
datafusion/core/src/execution/session_state.rs:
##########
@@ -1950,6 +1955,16 @@ mod tests {
     use super::{SessionContextProvider, SessionStateBuilder};
     use crate::datasource::MemTable;
     use crate::execution::context::SessionState;
+    use crate::{
+        common::assert_contains,
+        config::ConfigOptions,
+        datasource::{empty::EmptyTable, provider_as_source},
+        logical_expr::{
+            planner::ExprPlanner, AggregateUDF, ScalarUDF, TableSource, WindowUDF,
+        },
+        physical_plan::ExecutionPlan,
+        sql::{planner::ContextProvider, ResolvedTableReference, TableReference},
+    };

Review Comment:
   You may as well pull in the other 2 crate lines above if you are going to use this import style.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2713758011

   > @alamb I wonder if we can remove the `register_expr_planners` and `expr_planners` from the `FunctionRegistry` trait. I have checked the codebase and they're only used by a test. And it's kind of weird as these methods don’t seem to align with the core responsibility of the trait.
   
   It seem reasonable to me -- maybe we could make a PR to deprecate them first ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2717238521

   @alamb Sure, I maybe write an example to demonstrate how why the newly added `expr_planners` method is helpful


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2009375028


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   @Omega359 I agree, it's better to align the types. 
   
   I tried to align the types but ran into some difficulties. If both functions return a slice, SessionContext::expr_planners would encounter the error `Cannot return a reference of temporary values`.
   
   
   If both return a Vec, then SessionState's implementation of ContextProvider::get_expr_planners would also face the same issue. The only way to resolve this would be to change the return type of ContextProvider::get_expr_planners to Vec, but that would be a breaking change.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2009375028


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   @Omega359 I agree, it's better to align the types. 
   
   I tried to align the types but ran into some difficulties. If both functions return a slice, SessionContext::expr_planners would encounter the error Cannot return a reference of temporary values.
   
   
   If both return a Vec, then SessionState's implementation of ContextProvider::get_expr_planners would also face the same issue. The only way to resolve this would be to change the return type of ContextProvider::get_expr_planners to Vec, but that would be a breaking change.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2718998618

   > 
   @alamb Sure, I maybe write an example to demonstrate how why the newly added expr_planners method is helpful
   
   
   What I am thinking is "how will we ensure that we don't accidentally break this feature during future refactors"
   
   As it stands now, we could potentially break the feature without any tests failing
   
   Ideally we would have some test that fails so we would know to fix it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2721211650

   I plan to make a 46.0.1 release tomorrow
   - https://github.com/apache/datafusion/issues/15151
   
   Is this something we should include?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] chore: add an "expr_planners" method to SessionState [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2711291686

   CI appears to be failing so marking as draft


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r1998497878


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -1632,7 +1632,7 @@ impl FunctionRegistry for SessionContext {
     }
 
     fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
-        self.state.read().expr_planners()
+        self.state.read().expr_planners().to_vec()

Review Comment:
   Well, both the `FunctionRegistry` and `SessionState` provide an `expr_planners` method, but they return different data type. `FunctionRegistry::expr_planners` returns `Vec<dyn ExprPlanner`, and `SessionState::expr_planners` returns `&[dyn ExprPlanner]`.
   
   Now, the `SessionState::expr_planners` takes precedence and a slice of expression planners is returned. Therefore, we have add a `to_vec`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#issuecomment-2729093006

   @alamb Hi, I've written a test to demonstrate why it's more convenient and somewhat necessary to provide an `expr_planners` method for `SessionState`.
   
   I'm not sure if this test clearly conveyed my thoughts. Appreciate any feedback.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: add an "expr_planners" method to SessionState [datafusion]

Posted by "niebayes (via GitHub)" <gi...@apache.org>.
niebayes commented on code in PR #15119:
URL: https://github.com/apache/datafusion/pull/15119#discussion_r2009391285


##########
datafusion/core/src/execution/session_state.rs:
##########
@@ -1950,6 +1955,16 @@ mod tests {
     use super::{SessionContextProvider, SessionStateBuilder};
     use crate::datasource::MemTable;
     use crate::execution::context::SessionState;
+    use crate::{
+        common::assert_contains,
+        config::ConfigOptions,
+        datasource::{empty::EmptyTable, provider_as_source},
+        logical_expr::{
+            planner::ExprPlanner, AggregateUDF, ScalarUDF, TableSource, WindowUDF,
+        },
+        physical_plan::ExecutionPlan,
+        sql::{planner::ContextProvider, ResolvedTableReference, TableReference},
+    };

Review Comment:
   @Omega359 I have flattened all imports.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org