linrrzqqq commented on code in PR #68853:
URL: https://github.com/apache/doris/pull/68853#discussion_r4674523806
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/AccessPathExpressionCollector.java:
##########
@@ -437,6 +437,12 @@ && isUnderIsNull(context.accessPathBuilder.getPathList()))
{
return continueCollectAccessPath(first, context);
}
return visit(elementAt, context);
+ } else if (first.getDataType().isFileType()) {
+ // Analysis restricts FILE selectors to constant public field
names. Physical FILE
+ // children stay in their canonical positions even when only one
path is requested.
+ context.accessPathBuilder.addPrefix(
+ ((Literal)
arguments.get(1)).getStringValue().toLowerCase(Locale.ROOT));
+ return continueCollectAccessPath(first, context);
Review Comment:
file 的 inline 字段可能为 null,后续这个函数还需要负责去远端读取 inline,所以先保持全收集
--
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]