Skip to content
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

fixes #933 replace placeholder fmt_as fr ExecutionPlan impls #939

Conversation

tiphaineruy
Copy link
Contributor

Which issue does this PR close?

Closes #933.

Rationale for this change

Clearer query EXPLAIN

What changes are included in this PR?

add fmt_as on struct implementing ExecutionPlan

Are there any user-facing changes?

None

@github-actions github-actions bot added ballista datafusion Changes in the datafusion crate labels Aug 24, 2021
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great -- thank you for the contribution @tiphaineruy !

cc @houqp / @andygrove for the ballista changes. I think they are pretty straightforward and non controversial

) -> std::fmt::Result {
match t {
DisplayFormatType::Default => {
write!(f, "WindowAggExec")
Copy link
Contributor

@alamb alamb Aug 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think might be worth including self.window_expr (aka window_expr: Vec<Arc<dyn WindowExpr>>) as well

You can check out https://github.com/apache/arrow-datafusion/blob/master/datafusion/src/physical_plan/hash_aggregate.rs#L260-L272 for an example

Copy link
Contributor Author

@tiphaineruy tiphaineruy Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DisplayFormatType::Default => {
write!(
f,
"DistributedQueryExec: scheduler_url={}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for including scheduler_url

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@tiphaineruy tiphaineruy requested a review from alamb August 25, 2021 09:23
@alamb
Copy link
Contributor

alamb commented Aug 25, 2021

Thanks @tiphaineruy

@alamb alamb merged commit 74d2942 into apache:master Aug 25, 2021
@tiphaineruy tiphaineruy deleted the add-fmt-as-to-structs-implementing-executionplan branch August 26, 2021 06:51
@houqp houqp added the enhancement New feature or request label Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Physical plan explain UNION query says "ExecutionPlan(PlaceHolder)"
4 participants