-
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
Remove ExecutionProps
dependency from OptimizerRule
#2666
Remove ExecutionProps
dependency from OptimizerRule
#2666
Conversation
ExecutionProps
dependency from OptimizerRule
ExecutionProps
dependency from OptimizerRule
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.
LGTM -- I had only one tiny comment on the API, but that could be done later (or not at all)
let mut optimizer_config = OptimizerConfig::new(); | ||
optimizer_config.query_execution_start_time = | ||
self.execution_props.query_execution_start_time; | ||
|
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.
This might look nicer with a builder style:
let mut optimizer_config = OptimizerConfig::new(); | |
optimizer_config.query_execution_start_time = | |
self.execution_props.query_execution_start_time; | |
let optimizer_config = OptimizerConfig::new() | |
.with_query_execution_start_time( | |
self.execution_props.query_execution_start_time | |
); | |
Thanks @alamb. I will make that change in one of the follow on PRs. |
Which issue does this PR close?
Closes #2614
Rationale for this change
What changes are included in this PR?
OptimizerRule
trait no longer referencesExecutionProps
OptimizerRule
trait now referencesOptimizerConfig
instead, which contains the one value (query start time) that it was previously getting fromExecutionProps
Are there any user-facing changes?
Yes if they are using this API
Does this PR break compatibility with Ballista?
TBD