Skip to content

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 <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants