shrirangmhalgi commented on code in PR #56085:
URL: https://github.com/apache/spark/pull/56085#discussion_r3295000819


##########
sql/catalyst/src/main/java/org/apache/spark/sql/connector/util/V2ExpressionSQLBuilder.java:
##########
@@ -75,7 +76,11 @@ protected String escapeSpecialCharsForLikePattern(String 
str) {
   }
 
   public String build(Expression expr) {
-    if (expr instanceof Literal literal) {
+    if (expr instanceof Predicate p && p.name().equals("ALWAYS_TRUE")) {

Review Comment:
   Thanks. Thats a good point - updated to match `AlwaysTrue/AlwaysFalse 
directly`. 
   
   



-- 
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]

Reply via email to