We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee04a8b commit d5fc514Copy full SHA for d5fc514
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala
@@ -1099,7 +1099,7 @@ https://cwiki.apache.org/confluence/display/Hive/Enhanced+Aggregation%2C+Cube%2C
1099
Cast(nodeToExpr(arg), DateType)
1100
1101
/* Arithmetic */
1102
- case Token("+", child :: Nil) => Add(Literal(0), nodeToExpr(child))
+ case Token("+", child :: Nil) => nodeToExpr(child)
1103
case Token("-", child :: Nil) => UnaryMinus(nodeToExpr(child))
1104
case Token("~", child :: Nil) => BitwiseNot(nodeToExpr(child))
1105
case Token("+", left :: right:: Nil) => Add(nodeToExpr(left), nodeToExpr(right))
0 commit comments