morrySnow commented on code in PR #62913:
URL: https://github.com/apache/doris/pull/62913#discussion_r3158301642


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java:
##########
@@ -271,6 +271,13 @@ public static Optional<String> 
disableJoinReorderIfStatsInvalid(List<CatalogRela
         }
         boolean enableDebugLog = LOG.isDebugEnabled();
         for (CatalogRelation scan : scans) {
+            if (scan instanceof OlapScan) {
+                OlapScan olapScan = (OlapScan) scan;
+                // Keep this consistent with computeOlapScan: system tables 
use UNKNOWN stats.
+                if (StatisticConstants.isSystemTable(olapScan.getTable())) {
+                    continue;
+                }
+            }

Review Comment:
   revert this files change.



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