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] [Assigned] (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 ]
Apache Spark reassigned SPARK-24872:
------------------------------------
Assignee: (was: 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
> 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