Skip to content

Commit

Permalink
add div operator to Decimal random number tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Feb 28, 2025
1 parent fd158bf commit fb6e8b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
"spark.sql.decimalOperations.allowPrecisionLoss" -> allowPrecisionLoss.toString) {
val a = makeNum(p1, s1)
val b = makeNum(p2, s2)
var ops = Seq("+", "-", "*", "/", "%")
val ops = Seq("+", "-", "*", "/", "%", "div")
for (op <- ops) {
checkSparkAnswerAndOperator(s"select a, b, a $op b from $table")
checkSparkAnswerAndOperator(s"select $a, b, $a $op b from $table")
Expand Down

0 comments on commit fb6e8b5

Please sign in to comment.