[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org