-
- Downloads
[SPARK-16837][SQL] TimeWindow incorrectly drops slideDuration in constructors
## What changes were proposed in this pull request? Fix of incorrect arguments (dropping slideDuration and using windowDuration) in constructors for TimeWindow. The JIRA this addresses is here: https://issues.apache.org/jira/browse/SPARK-16837 ## How was this patch tested? Added a test to TimeWindowSuite to check that the results of TimeWindow object apply and TimeWindow class constructor are equivalent. Author: Tom Magrino <tmagrino@fb.com> Closes #14441 from tmagrino/windowing-fix.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/TimeWindow.scala 2 additions, 2 deletions...rg/apache/spark/sql/catalyst/expressions/TimeWindow.scala
- sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/TimeWindowSuite.scala 12 additions, 0 deletions...ache/spark/sql/catalyst/expressions/TimeWindowSuite.scala
Please register or sign in to comment