morrySnow commented on code in PR #28497:
URL: https://github.com/apache/doris/pull/28497#discussion_r1428186927
##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/jdbc/JdbcScanNode.java:
##########
@@ -328,13 +328,31 @@ public static String conjunctExprToString(TOdbcTableType
tableType, Expr expr, J
if (expr instanceof CompoundPredicate) {
StringBuilder result = new StringBuilder();
CompoundPredicate compoundPredicate = (CompoundPredicate) expr;
+
+ // If the operator is 'NOT', prepend 'NOT' to the start of the
string
+ if ("NOT".equals(compoundPredicate.getOp().toString())) {
Review Comment:
i think u should use `compoundPredicate.op == Operator.NOT`
--
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]