cloud-fan commented on a change in pull request #30625:
URL: https://github.com/apache/spark/pull/30625#discussion_r537237966
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
##########
@@ -3718,6 +3718,14 @@ class SQLQuerySuite extends QueryTest with
SharedSparkSession with AdaptiveSpark
}
}
}
+
+ test("SPARK-33677: LikeSimplification should be skipped if escape is a
wildcard character") {
+ val e = intercept[AnalysisException] {
+ sql("SELECT string(rand()) LIKE 'm%aca' ESCAPE '%'").collect()
Review comment:
so the problem is, we should only apply like simplification if the
pattern is valid?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]