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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java:
##########
@@ -412,11 +423,9 @@ private ColumnStatistic 
getColumnStatsFromTableCache(CatalogRelation catalogRela
     /**
      * if get partition col stats failed, then return table level col stats
      */
-    private ColumnStatistic 
getColumnStatsFromPartitionCacheOrTableCache(OlapScan catalogRelation, 
SlotReference slot,
-            List<String> partitionNames) {
-        long idxId = catalogRelation.getSelectedIndexId();
-
-        return getColumnStatistic(catalogRelation.getTable(), slot.getName(), 
idxId, partitionNames);
+    private ColumnStatistic getColumnStatsFromPartitionCacheOrTableCache(
+            OlapTableStatistics olapTableStats, SlotReference slot, 
List<String> partitionNames) {
+        return getColumnStatistic(olapTableStats, slot.getName(), 
partitionNames);

Review Comment:
   why remove idxId? it is used to identify different sync MVs



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