Skip to content

Commit

Permalink
Test case for default escape char with checkSparkAnswerAndOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
sujithjay committed May 28, 2024
1 parent bfac08a commit 496e885
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 496e885

Please sign in to comment.