JackieTien97 commented on code in PR #17053:
URL: https://github.com/apache/iotdb/pull/17053#discussion_r2710577932
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/predicate/ConvertPredicateToFilterVisitor.java:
##########
@@ -371,6 +373,14 @@ protected Filter visitIsNullPredicate(IsNullPredicate
node, Context context) {
throw new IllegalArgumentException("IS NULL cannot be pushed down");
}
+ @Override
+ protected Filter visitCast(Cast node, Context context) {
+ if (node.getExpression() instanceof NullLiteral) {
+ return new FalseLiteralFilter();
+ }
+ return process(node.getExpression(), context);
+ }
Review Comment:
not right, what if I write CAST(NULL AS BOOLEAM) IS NULL ?
--
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]