From 496e885da9c938519822bf021505e7fcf90395b5 Mon Sep 17 00:00:00 2001 From: Sujith Jay Nair Date: Tue, 28 May 2024 17:40:36 -0400 Subject: [PATCH] Test case for default escape char with checkSparkAnswerAndOperator --- .../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 ff2fb53ba..426639607 100644 --- a/spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala +++ b/spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala @@ -588,7 +588,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper { // Filter column having values that include underscores val queryDefaultEscape = sql("select id from names where name like '%\\_%'") - checkAnswer(queryDefaultEscape, Row(2) :: Row(3) :: Nil) + checkSparkAnswerAndOperator(queryDefaultEscape) val queryCustomEscape = sql("select id from names where name like '%$_%' escape '$'") checkAnswer(queryCustomEscape, Row(2) :: Row(3) :: Nil)