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 0c29ae8 commit af98f29Copy full SHA for af98f29
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala
@@ -926,7 +926,7 @@ private[hive] object HiveQl {
926
case Token("*", left :: right:: Nil) => Multiply(nodeToExpr(left), nodeToExpr(right))
927
case Token("/", left :: right:: Nil) => Divide(nodeToExpr(left), nodeToExpr(right))
928
case Token(DIV(), left :: right:: Nil) =>
929
- Cast(Divide(nodeToExpr(left), nodeToExpr(right)), IntegerType)
+ Cast(Divide(nodeToExpr(left), nodeToExpr(right)), LongType)
930
case Token("%", left :: right:: Nil) => Remainder(nodeToExpr(left), nodeToExpr(right))
931
932
/* Comparisons */
0 commit comments