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

    https://github.com/apache/spark/pull/15417#discussion_r85650659
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/FilterPushdownSuite.scala
 ---
    @@ -1016,6 +1016,8 @@ class FilterPushdownSuite extends PlanTest {
         val correctAnswer = x.where("x.a".attr === 5).join(y.where("y.a".attr 
=== 5),
             condition = Some("x.a".attr === Rand(10) && "y.b".attr === 5))
     
    -    comparePlans(Optimize.execute(originalQuery.analyze), 
correctAnswer.analyze)
    --- End diff --
    
    ```
    db2 "select a.actno from act a, act b where a.actno = b.actno and rand() < 
0.5 and rand() >= 0.5"
    ```
    
    In the above example, the non-deterministic functions in the join 
conditions are also evaluated twice in DBMS. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to