[
https://issues.apache.org/jira/browse/SPARK-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14184649#comment-14184649
]
Apache Spark commented on SPARK-3960:
-------------------------------------
User 'sarutak' has created a pull request for this issue:
https://github.com/apache/spark/pull/2949
> 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: [email protected]
For additional commands, e-mail: [email protected]