You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2019/04/10 08:59:00 UTC

[jira] [Resolved] (SPARK-24872) Remove the symbol “||” of the “OR” operation

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

Wenchen Fan resolved SPARK-24872.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

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

> Remove the symbol “||” of the “OR” operation
> --------------------------------------------
>
>                 Key: SPARK-24872
>                 URL: https://issues.apache.org/jira/browse/SPARK-24872
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.4.0
>            Reporter: hantiantian
>            Assignee: hantiantian
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> “||” will perform the function of STRING concat, and it is also the symbol of the "OR" operation.
> When I want use "||" as "OR" operation, I find that it perform the function of STRING concat,
>   spark-sql> explain extended select * from aa where id==1 || id==2;
>    == Parsed Logical Plan ==
>     'Project [*]
>      +- 'Filter (('id = concat(1, 'id)) = 2)
>       +- 'UnresolvedRelation `aa`
>    spark-sql> select "abc" || "DFF" ;
>    And the result is "abcDFF".
> In predicates.scala, "||" is the symbol of "Or" operation. Could we remove it?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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