-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MINOR: add optimizer struct #2616
Conversation
7afb925
to
77049a2
Compare
77049a2
to
76f9703
Compare
pub fn optimize<F>( | ||
&self, | ||
plan: &LogicalPlan, | ||
execution_props: &mut ExecutionProps, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to your changes but I am trying to get rid of the use of ExecutionProps
here - #2614
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jackwener. This looks like a good change to me and helps towards #2599 as well
@@ -1189,7 +1190,7 @@ pub struct SessionState { | |||
/// Uuid for the session | |||
pub session_id: String, | |||
/// Responsible for optimizing a logical plan | |||
pub optimizers: Vec<Arc<dyn OptimizerRule + Send + Sync>>, | |||
pub optimizer: Optimizer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a nice improvement 👍
Which issue does this PR close?
Closes #.
What changes are included in this PR?
Add the
Optimizer
struct.Are there any user-facing changes?
None
Does this PR break compatibility with Ballista?
No