-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Simplify the printing of all plans containing expr
in tree
mode
#15249
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
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.
Thank you so much @irenjj - this looks amazing
I had some small comments / questions, but I also think we can do them as follow on PRs -- this is already better than what is on main
DisplayFormatType::TreeRender => { | ||
if let Some(predicate) = self.predicate() { | ||
writeln!(f, "predicate={predicate}")?; | ||
writeln!(f, "predicate={}", fmt_sql(predicate.as_ref()))?; |
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.
❤️
}) | ||
.collect() | ||
}; | ||
// TODO: Implement `fmt_sql` for `AggregateFunctionExpr`. |
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.
perhaps we can make a follow on ticket for this
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'm trying to resolve it, filed #15252.
WindowAggExpr
seems have a similar problem🤔.
09)│ -------------------- │ | ||
10)│ predicate: │ | ||
11)│ string_col@1 != foo │ | ||
11)│ string_col != foo │ |
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.
so nice
16)│ predicate: │ | ||
17)│ ticker@1 = A │ | ||
04)│ date ASC NULLS LAST, │ | ||
05)│ │ |
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 is somewhat strange to me there is an extra newline. Is that something we can remove?
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.
That was an issue I introduced in SortPreservingMergeExec
😭, has been fixed in the latest update.
15)│ FilterExec │ | ||
16)│ -------------------- │ | ||
17)│ predicate: │ | ||
18)│ ticker = A AND CAST(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.
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Thanks @alamb for your review. |
Thanks again @irenjj -- merging this one in to unblock the next in the sequence |
Which issue does this PR close?
expr
intree
mode. #15238Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?