-
- Downloads
[SPARK-19841][SS] watermarkPredicate should filter based on keys
## What changes were proposed in this pull request? `StreamingDeduplicateExec.watermarkPredicate` should filter based on keys. Otherwise, it may generate a wrong answer if the watermark column in `keyExpression` has a different position in the row. `StateStoreSaveExec` has the same codes but its parent can makes sure the watermark column positions in `keyExpression` and `row` are the same. ## How was this patch tested? The added test. Author: Shixiong Zhu <shixiong@databricks.com> Closes #17183 from zsxwing/SPARK-19841.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/statefulOperators.scala 20 additions, 8 deletions...che/spark/sql/execution/streaming/statefulOperators.scala
- sql/core/src/test/scala/org/apache/spark/sql/streaming/DeduplicateSuite.scala 19 additions, 0 deletions...ala/org/apache/spark/sql/streaming/DeduplicateSuite.scala
Please register or sign in to comment