Gabriel39 commented on code in PR #67166:
URL: https://github.com/apache/doris/pull/67166#discussion_r3912709994


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/NestedColumnPruning.java:
##########
@@ -662,7 +663,7 @@ public void setAccessByPath(List<String> path, int 
accessIndex, ColumnAccessPath
             accessPartialChild = true;
 
             if (this.type.isStructType()) {
-                String fieldName = path.get(accessIndex).toLowerCase();
+                String fieldName = 
path.get(accessIndex).toLowerCase(Locale.ROOT);

Review Comment:
   Fixed in d6f98ebafd. Cast path remapping now compares the already 
ROOT-normalized runtime keys exactly, matching the access-tree identity rules. 
Added a cast-plus-pruning regression with `i` and dotless `ı`; before the fix 
it selected the first source field, and after the fix it preserves and prunes 
the requested second sibling.



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