englefly commented on code in PR #65805:
URL: https://github.com/apache/doris/pull/65805#discussion_r3644270470


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/AccessPathExpressionCollector.java:
##########
@@ -365,6 +416,7 @@ public Void visitMapKeys(MapKeys mapKeys, CollectorContext 
context) {
                     = new CollectorContext(context.statementContext, 
context.bottomFilter);
             
removeStarContext.accessPathBuilder.accessPath.addAll(suffixPath.subList(1, 
suffixPath.size()));
             
removeStarContext.accessPathBuilder.addPrefix(AccessPathInfo.ACCESS_MAP_KEYS);
+            removeStarContext.setType(context.type);

Review Comment:
   map_keys(m)[1] IS NULL  不是判断 null, 是判断map的 size 是否大于 1, 所以这里输出 data path



-- 
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]

Reply via email to