Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19327#discussion_r142335578
  
    --- 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 --
    
    These tests should be moved to a catalyst test suite 
(SteamingJoinHelperSuite) as the code it tests has moved to the 
StreamingJoinHelper.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to