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

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

    [ https://issues.apache.org/jira/browse/SPARK-31912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17126553#comment-17126553 ] 

Apache Spark commented on SPARK-31912:
--------------------------------------

User 'wangyum' has created a pull request for this issue:
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
>            Priority: Major
>
> 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