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 2018/07/20 09:34:00 UTC

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

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

Apache Spark commented on SPARK-24872:
--------------------------------------

User 'httfighter' has created a pull request for this issue:
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
>            Priority: Minor
>
> “||” 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