-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-39876][FOLLOW-UP][SQL] Add parser and Dataset tests for SQL UNPIVOT #38153
Conversation
@cloud-fan here is |
Can one of the admins verify this patch? |
table("t") | ||
) | ||
.where(coalesce($"val").isNotNull) | ||
.select(star()) |
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.
table("t") | |
) | |
.where(coalesce($"val").isNotNull) | |
.select(star()) | |
table("t")) | |
.where(coalesce($"val").isNotNull) | |
.select(star()) |
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.
Done, also added two tests regarding EXCLUDE / INCLUDE NULLS.
Seq("val"), | ||
table("t") | ||
) | ||
.where(coalesce($"val").isNotNull) |
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.
ditto
All tests green. |
thanks, merging to master! |
…PIVOT ### What changes were proposed in this pull request? Adds more tests for the SQL `UNPIVOT` clause. apache#37407 (comment) ### Why are the changes needed? Better test coverage. ### Does this PR introduce _any_ user-facing change? No, only more tests and fixing one issue. SQL `UNPIVOT` has not been released yet. ### How was this patch tested? In `UnpivotParserSuite` and `DatasetUnpivotSuite`. Closes apache#38153 from EnricoMi/branch-sql-unpivot-tests. Authored-by: Enrico Minack <github@enrico.minack.dev> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
Adds more tests for the SQL
UNPIVOT
clause. #37407 (comment)Why are the changes needed?
Better test coverage.
Does this PR introduce any user-facing change?
No, only more tests and fixing one issue. SQL
UNPIVOT
has not been released yet.How was this patch tested?
In
UnpivotParserSuite
andDatasetUnpivotSuite
.