Github user joseph-torres commented on a diff in the pull request:
https://github.com/apache/spark/pull/19327#discussion_r142442657
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingJoinSuite.scala
---
@@ -425,6 +426,10 @@ class StreamingJoinSuite extends StreamTest with
StateStoreMetricsTest with Befo
// Test static comparisons
assert(watermarkFrom("cast(leftTime AS LONG) > 10") === Some(10000))
+
+ // Test non-positive results
+ assert(watermarkFrom("CAST(leftTime AS LONG) > CAST(rightTime AS LONG)
- 10") === Some(0))
+ assert(watermarkFrom("CAST(leftTime AS LONG) > CAST(rightTime AS LONG)
- 100") === Some(-90000))
--- End diff --
As mentioned earlier, I'm not sure how to move them; this test method as
written relies on building a physical plan.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]