REQ-2135: make unsupported bin expr to expose the issue

This commit is contained in:
yanglin 2024-04-03 09:14:07 +08:00
parent 5dbc08a3c4
commit 2e4ac15c04

View File

@ -83,8 +83,11 @@ class EvalVisitor implements SQLASTVisitor {
value = leftValue == null;
else if (operator == SQLBinaryOperator.IsNot)
value = leftValue != null;
} else
} else {
log.warn("Unsupported bin expr: {}", SQLUtils.toMySqlString(x));
// make it false to expose the issue
value = false;
}
x.putAttribute(VALUE, value);
return visitRight.get();
}