-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-16703][SQL] Remove extra whitespace in SQL generation for window functions #14334
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
|
Test build #62770 has finished for PR 14334 at commit
|
|
Can you add a JIRA ticket? |
|
Hi, @liancheng . SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "hive/test-only *LogicalPlanToSQLSuite" |
|
@rxin @dongjoon-hyun Thanks! JIRA ticket added and updated the golden files. |
|
BTW can you change the title to say "Remove extra whitespace in SQL generation for window functions"? |
|
Test build #62797 has finished for PR 14334 at commit
|
|
LGTM |
|
After merging this PR, I will rebase my PR #14257 . |
|
@rxin PR title updated. |
|
Merging in master/2.0. |
…ow functions ## What changes were proposed in this pull request? This PR fixes a minor formatting issue of `WindowSpecDefinition.sql` when no partitioning expressions are present. Before: ```sql ( ORDER BY `a` ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) ``` After: ```sql (ORDER BY `a` ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) ``` ## How was this patch tested? New test case added in `ExpressionSQLBuilderSuite`. Author: Cheng Lian <lian@databricks.com> Closes #14334 from liancheng/window-spec-sql-format. (cherry picked from commit 7ea6d28) Signed-off-by: Reynold Xin <rxin@databricks.com>
What changes were proposed in this pull request?
This PR fixes a minor formatting issue of
WindowSpecDefinition.sqlwhen no partitioning expressions are present.Before:
After:
How was this patch tested?
New test case added in
ExpressionSQLBuilderSuite.