This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new ab0b7f6194b branch-3.0: [opt](nereids) do not fetch partition col stats #48354 (#48824) ab0b7f6194b is described below commit ab0b7f6194b25953d1eff20d4d54b4385e053341 Author: minghong <zhoumingh...@selectdb.com> AuthorDate: Wed Mar 12 10:20:06 2025 +0800 branch-3.0: [opt](nereids) do not fetch partition col stats #48354 (#48824) ### What problem does this PR solve? pick #48354 --- .../src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java index 77b0cdd712b..21c01a97071 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java @@ -556,7 +556,9 @@ public class StatsCalculator extends DefaultPlanVisitor<Statistics, Void> { selectedPartitionNames.add(olapScan.getTable().getPartition(id).getName()); }); for (SlotReference slot : visibleOutputSlots) { - ColumnStatistic cache = getColumnStatsFromPartitionCache(olapScan, slot, selectedPartitionNames); + ColumnStatistic cache; + cache = getColumnStatsFromTableCache((CatalogRelation) olapScan, slot); + if (slot.getColumn().isPresent()) { cache = updateMinMaxForPartitionKey(olapTable, selectedPartitionNames, slot, cache); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org