Skip to content

Commit 4292bf6

Browse files
cherry-pick apache#66380 fix temporarily
1 parent d9351b5 commit 4292bf6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/AccessPathExpressionCollector.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,9 @@ public Void visitIsNull(IsNull isNull, CollectorContext context) {
648648
Expression arg = isNull.child();
649649
// Skip variant sub-column paths (v['k'] IS NULL): the sub-column path is already baked
650650
// into the SlotReference, so null-only access doesn't apply the same way.
651-
if (arg instanceof SlotReference && ((SlotReference) arg).hasSubColPath()) {
651+
if (arg instanceof SlotReference && (((SlotReference) arg).hasSubColPath()
652+
|| (((SlotReference) arg).getOriginalColumn().isPresent()
653+
&& !((SlotReference) arg).getOriginalColumn().get().isAllowNull()))) {
652654
return visit(isNull, context);
653655
}
654656
// Optimize IS NULL on nullable expressions: create a context with NULL suffix to indicate

0 commit comments

Comments
 (0)