Skip to content

Commit 0821ae4

Browse files
committed
remove unnecessary Add
1 parent a38e23c commit 0821ae4

File tree

1 file changed

+1
-1
lines changed
  • sql/hive/src/main/scala/org/apache/spark/sql/hive

1 file changed

+1
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ https://cwiki.apache.org/confluence/display/Hive/Enhanced+Aggregation%2C+Cube%2C
10991099
Cast(nodeToExpr(arg), DateType)
11001100

11011101
/* Arithmetic */
1102-
case Token("+", child :: Nil) => Add(Literal(0), nodeToExpr(child))
1102+
case Token("+", child :: Nil) => nodeToExpr(child)
11031103
case Token("-", child :: Nil) => UnaryMinus(nodeToExpr(child))
11041104
case Token("~", child :: Nil) => BitwiseNot(nodeToExpr(child))
11051105
case Token("+", left :: right:: Nil) => Add(nodeToExpr(left), nodeToExpr(right))

0 commit comments

Comments
 (0)