-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Improve documentation for ExecutionPlanProperties, use consistent field name #9389
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
Conversation
5bdb95e to
fb3acf5
Compare
| /// | ||
| /// See also [`ExecutionPlan::maintains_input_order`] and [`Self::output_ordering`] | ||
| /// for related concepts. | ||
| fn equivalence_properties(&self) -> &EquivalenceProperties; |
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.
github rendered the diff strangely -- what I did was move the comments into the trait
| /// Stores output ordering of the [`ExecutionPlan`]. A `None` value represents | ||
| /// no ordering. | ||
| /// See [ExecutionPlanProperties::execution_mode] | ||
| pub execution_mode: ExecutionMode, |
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.
A drive by change was to rename this field to match the trait
ozankabak
left a comment
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, have one minor suggestion
| fn equivalence_properties(&self) -> &EquivalenceProperties; | ||
| } | ||
|
|
||
| impl ExecutionPlanProperties for Arc<dyn ExecutionPlan> { |
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.
| impl ExecutionPlanProperties for Arc<dyn ExecutionPlan> { | |
| impl ExecutionPlanProperties for dyn ExecutionPlan { |
Maybe doing this will make the extension trait a bit more generally applicable?
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.
Added in 839d783
It turns out I had to also leave the
impl ExecutionPlanProperties for Arc<dyn ExecutionPlan> {Otherwise the compiler didn't seem to be able to find the relevant methods without code changes (e.g. execution_plan.as_ref()....)
mustafasrepo
left a comment
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!. Thanks @alamb for this PR.
Draft until #9346 is merged
Which issue does this PR close?
Related to #9346
Rationale for this change
After #9346, some of the functions that were previously on ExecutionPlan were moved to an extension trait
But the docs don't show up in rustdoc

What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?