Skip to content

[SPARK-27514][SQL] Skip collapsing windows with empty window expressions #538

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

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

yifeih
Copy link

@yifeih yifeih commented Apr 18, 2019

Upstream SPARK-XXXXX ticket and PR link (if not applicable, explain)

github: apache#24411
jira: https://issues.apache.org/jira/browse/SPARK-27514

What changes were proposed in this pull request?

A previous change moved the removal of empty window expressions to the RemoveNoopOperations rule, which comes after the CollapseWindow rule. Therefore, by the time we get to CollapseWindow, we aren't guaranteed that empty windows have been removed. This change checks that the window expressions are not empty, and only collapses the windows if both windows are non-empty.

A lengthier description and repro steps here: https://issues.apache.org/jira/browse/SPARK-27514

How was this patch tested?

A unit test, plus I reran the breaking case mentioned in the Jira ticket.

@mccheah mccheah changed the title [SPARK-27514] Skip collapsing windows with empty window expressions [SPARK-27514][SQL] Skip collapsing windows with empty window expressions Apr 18, 2019
@bulldozer-bot bulldozer-bot bot merged commit 1a6f6a4 into master Apr 18, 2019
@bulldozer-bot bulldozer-bot bot deleted the spark-27514 branch April 18, 2019 23:56
bulldozer-bot bot pushed a commit that referenced this pull request Apr 19, 2019
* [SPARK-27267][CORE] Update snappy to avoid error when decompressing empty serialized data (#531)
* [SPARK-27514][SQL] Skip collapsing windows with empty window expressions (#538)
* Bump hadoop to 2.9.2-palantir.5 (#537)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants