morningman commented on code in PR #39064:
URL: https://github.com/apache/doris/pull/39064#discussion_r1707335507


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/CompoundPredicate.java:
##########
@@ -94,7 +94,26 @@ public String toSqlImpl() {
             Preconditions.checkState(op == Operator.NOT);
             return "NOT " + getChild(0).toSql();
         } else {
-            return getChild(0).toSql() + " " + op.toString() + " " + 
getChild(1).toSql();
+            String left = getChild(0).toSql();

Review Comment:
   why not adding `()` for both left and right?
   like: `(left) op (right)`



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