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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org