You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (JIRA)" <ji...@apache.org> on 2014/10/15 23:08:34 UTC
[jira] [Updated] (SPARK-3960) We can apply unary minus only to
literal.
[ https://issues.apache.org/jira/browse/SPARK-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kousuke Saruta updated SPARK-3960:
----------------------------------
Summary: We can apply unary minus only to literal. (was: We cannot apply unary minus only to literal.)
> We can apply unary minus only to literal.
> -----------------------------------------
>
> Key: SPARK-3960
> URL: https://issues.apache.org/jira/browse/SPARK-3960
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.2.0
> Reporter: Kousuke Saruta
> Priority: Critical
>
> Because of the wrong syntax definition, we cannot apply unary minus only to literal. So, we cannot write such expressions.
> {code}
> -(value1 + value2) // Parenthesized expressions
> -column // Columns
> -MAX(column) // Functions
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org