Skip to content

Commit af98f29

Browse files
committed
Change DIV to long type
1 parent 0c29ae8 commit af98f29

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
@@ -926,7 +926,7 @@ private[hive] object HiveQl {
926926
case Token("*", left :: right:: Nil) => Multiply(nodeToExpr(left), nodeToExpr(right))
927927
case Token("/", left :: right:: Nil) => Divide(nodeToExpr(left), nodeToExpr(right))
928928
case Token(DIV(), left :: right:: Nil) =>
929-
Cast(Divide(nodeToExpr(left), nodeToExpr(right)), IntegerType)
929+
Cast(Divide(nodeToExpr(left), nodeToExpr(right)), LongType)
930930
case Token("%", left :: right:: Nil) => Remainder(nodeToExpr(left), nodeToExpr(right))
931931

932932
/* Comparisons */

0 commit comments

Comments
 (0)