-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore: improve RepartitionExec display tree #15606
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
| f, | ||
| "output_partition_count={}", | ||
| "input_partition_count={}", | ||
| self.input.output_partitioning().partition_count() |
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 the output partition number is required to display in this node, but it's not implemented correctly. (or maybe now the planner always set the output partition the same as the input partition count)
I suggest to change the implementation instead, maybe we can display both the input and output partition count.
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 for review.
The output partition number is already included in the partitioning_scheme, so it is displayed.
ex)
13)┌─────────────┴─────────────┐
14)│ RepartitionExec │
15)│ -------------------- │
16)│ input_partition_count: │
17)│ 1 │
18)│ │
19)│ partitioning_scheme: │
20)│ RoundRobinBatch(4) │
21)└─────────────┬─────────────┘
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.
Maybe as a follow-up task we can update it to be more clear like
input_partition_count: 1
output_partition_count: 4
partition_scheme: RoundRobin
2010YOUY01
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.
Makes sense, thank you.
* fix RepartitionExec tree displayformat * pass sqllogictests
Which issue does this PR close?
Rationale for this change
easy to understand because it means the number of
RepartitionExecinput's output partition numberWhat changes are included in this PR?
Are these changes tested?
Yes
Are there any user-facing changes?
explain tree displaying