wankunde commented on code in PR #38649:
URL: https://github.com/apache/spark/pull/38649#discussion_r1043018066
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala:
##########
@@ -780,6 +780,13 @@ object LikeSimplification extends Rule[LogicalPlan] {
} else {
simplifyLike(input, pattern.toString, escapeChar).getOrElse(l)
}
+ case LikeAny(child, patterns)
+ if patterns.map(_.toString).forall { case equalTo(_) => true case _ =>
false } =>
+ InSet(child, patterns.toSet)
Review Comment:
Now support this pattern, and add UT
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]