spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-24872) Remove the symbol “||” of the “OR” operation
Date Fri, 20 Jul 2018 09:34:00 GMT

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

Apache Spark reassigned SPARK-24872:
------------------------------------

    Assignee: Apache Spark

> 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: Apache Spark
>            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


Mime
View raw message