GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/17432
[SPARK-20086][SQL] CollapseWindow should not collapse dependent adjacent
windows
## What changes were proposed in this pull request?
The `CollapseWindow` is currently to aggressive when collapsing adjacent
windows. It also collapses windows in the which the parent produces a column
that is consumed by the child; this creates an invalid window which will fail
at runtime.
This PR fixes this by adding a check for dependent adjacent windows to the
`CollapseWindow` rule.
## How was this patch tested?
Added a new test case to `CollapseWindowSuite`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-20086
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17432.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17432
----
commit 500c26f55787dccc394896a2e8d646666239564e
Author: Herman van Hovell <[email protected]>
Date: 2017-03-26T07:47:28Z
CollapseWindow rule should respect dependencies between adjacent windows.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]