yujun777 commented on code in PR #62913:
URL: https://github.com/apache/doris/pull/62913#discussion_r3186508042
##########
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:
Done. I reverted the StatsCalculator.java change and removed the related
StatsCalculatorTest coverage. The PR now keeps only the
StatisticsCache.OlapTableStatistics accessor guard, so system-table column and
partition-column stats return UNKNOWN there while normal user-table validation
is unchanged.
--
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]