Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

EnricoMi
Copy link
Contributor

@EnricoMi EnricoMi commented Oct 7, 2022

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 and DatasetUnpivotSuite.

@github-actions github-actions bot added the SQL label Oct 7, 2022
@EnricoMi
Copy link
Contributor Author

EnricoMi commented Oct 7, 2022

@cloud-fan here is UnpivotParserSuite

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Comment on lines 45 to 48
table("t")
)
.where(coalesce($"val").isNotNull)
.select(star())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
table("t")
)
.where(coalesce($"val").isNotNull)
.select(star())
table("t"))
.where(coalesce($"val").isNotNull)
.select(star())

Copy link
Contributor Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@EnricoMi
Copy link
Contributor Author

All tests green.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 9bc8c06 Oct 13, 2022
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants