From 39e71a835508b2032af3cc030e86672574cbb87e Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Wed, 6 Mar 2024 00:14:03 -0800 Subject: [PATCH] Add test for modulo --- .../src/test/scala/org/apache/comet/CometExpressionSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala b/spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala index 8a6d876c8..7424f1bfd 100644 --- a/spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala +++ b/spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala @@ -61,7 +61,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper { readParquetFile(dir.getCanonicalPath) { df => { val decimalLiteral = Decimal(0.00) - val cometDf = df.select($"dec" / decimalLiteral) + val cometDf = df.select($"dec" / decimalLiteral, $"dec" % decimalLiteral) checkSparkAnswerAndOperator(cometDf) } }