morrySnow commented on code in PR #37565: URL: https://github.com/apache/doris/pull/37565#discussion_r1680371443
########## fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java: ########## @@ -1738,6 +1736,14 @@ public void finalizeForNereids() { computeStatsForNereids(); // NOTICE: must call here to get selected tablet row count to let block rules work well. mockRowCountInStatistic(); + + outputColumnUniqueIds.clear(); + for (SlotDescriptor slot : desc.getSlots()) { + if (!slot.isMaterialized()) { Review Comment: i think there is diff with original code. we only want put **PROJECT** slot's unique id into outputColumnUniqueIds to avoid materialze slot only in filter when use inverted index. but slot.isMaterialized = true include slot only in filter. u could debug with sql like `select c1 from t where c2 = 3`, outputColumnUniqueIds should only contain c1's unique id -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org