GitHub user raghavgautam opened a pull request:
https://github.com/apache/spark/pull/22414
[SPARK-25424][SQL] Window duration and slide duration with negative vâ¦
â¦alues should fail fast
(Link to Jira: https://issues.apache.org/jira/browse/SPARK-25424)
## What changes were proposed in this pull request?
The constructors of TimeWindow class and apply method of companion object
has been changed to ensure that window duration and slide duration is not be
allowed to take negative values.
## How was this patch tested?
I have added UTs.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/raghavgautam/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22414.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 #22414
----
commit e63c65ca2bf9eb6633dc59418b6bc27bb0042216
Author: Raghav Kumar Gautam <raghav@...>
Date: 2018-09-13T17:42:42Z
[SPARK-25424][SQL] Window duration and slide duration with negative values
should fail fast
(Link to Jira: https://issues.apache.org/jira/browse/SPARK-25424)
## What changes were proposed in this pull request?
The constructors of TimeWindow class and apply method of companion object
has been changed to ensure that window duration and slide duration is not be
allowed to take negative values.
## How was this patch tested?
I have added UTs.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]