-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make SessionState members private #4764
Make SessionState members private #4764
Conversation
@@ -1773,7 +1771,7 @@ impl DefaultPhysicalPlanner { | |||
where | |||
F: FnMut(&dyn ExecutionPlan, &dyn PhysicalOptimizerRule), | |||
{ | |||
let optimizers = &session_state.physical_optimizers; | |||
let optimizers = session_state.physical_optimizers(); |
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 is quite a peculiar API, I'm not sure why the physical planner would be calling the optimizers and not SessionState itself
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.
it may predate when the list of optimizers was on the session state 🤔
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.
Ok - I will add it to my list
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 -- thank you @tustvold
@@ -1773,7 +1771,7 @@ impl DefaultPhysicalPlanner { | |||
where | |||
F: FnMut(&dyn ExecutionPlan, &dyn PhysicalOptimizerRule), | |||
{ | |||
let optimizers = &session_state.physical_optimizers; | |||
let optimizers = session_state.physical_optimizers(); |
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.
it may predate when the list of optimizers was on the session state 🤔
I plan to merge this tomorrow morning unless I hear anything further |
Benchmark runs are scheduled for baseline = c9350d1 and contender = 41c72cf. 41c72cf is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #.
Rationale for this change
Exposing members publicly is a very strong and broad API commitment, which makes it very difficult to make non-breaking changes, as it is very hard to reason about how the type is being used.
What changes are included in this PR?
Makes the members of
SessionState
privateAre these changes tested?
Are there any user-facing changes?