[CALCITE-5929] Improve LogicalWindow print plan to add the constant value#5015
Merged
Conversation
mihaibudiu
reviewed
Jun 11, 2026
| return buf.toString(); | ||
| } | ||
|
|
||
| private static String expandBound(RexWindowBound bound, |
Contributor
There was a problem hiding this comment.
Please note that bounds may not be literals, but constant expressions. Please add a test case for that to make sure that this toString() does the right thing.
Member
Author
There was a problem hiding this comment.
Yes, thanks for the reminder, I added tests to cover this.
mihaibudiu
reviewed
Jun 13, 2026
| * to their values. Unlike {@link #toString()}, this is for display | ||
| * only and does not affect {@link #equals} or {@link #hashCode}. | ||
| * Constants can be literals or expressions (e.g., 5+5), and are expanded | ||
| * to their string representation for readability. */ |
Contributor
There was a problem hiding this comment.
they are not expanded for readability, they are expanded because they have to be shown.
You can remove the text after the last comma.
mihaibudiu
approved these changes
Jun 13, 2026
|
xiedeyantu
reviewed
Jun 13, 2026
| <Resource name="sql"> | ||
| <


jira: https://issues.apache.org/jira/browse/CALCITE-5929