You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2020/06/12 05:52:00 UTC

[jira] [Resolved] (SPARK-31912) Normalize all binary comparison expressions

     [ https://issues.apache.org/jira/browse/SPARK-31912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuming Wang resolved SPARK-31912.
---------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 28734
[https://github.com/apache/spark/pull/28734]

> Normalize all binary comparison expressions
> -------------------------------------------
>
>                 Key: SPARK-31912
>                 URL: https://issues.apache.org/jira/browse/SPARK-31912
>             Project: Spark
>          Issue Type: Improvement
>          Components: Tests
>    Affects Versions: 3.1.0
>            Reporter: Yuming Wang
>            Assignee: Yuming Wang
>            Priority: Major
>             Fix For: 3.1.0
>
>
> This test will fail:
> {code:scala}
>   test("SPARK-31912 Normalize all binary comparison expressions") {
>     val original = testRelation
>       .where('a === 'b && Literal(13) >= 'b).as("x")
>     val optimized = testRelation
>       .where(IsNotNull('a) && IsNotNull('b) && 'a === 'b && 'b <= 13 && 'a <= 13).as("x")
>     comparePlans(Optimize.execute(original.analyze), optimized.analyze)
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org