yujun777 opened a new pull request, #62913:
URL: https://github.com/apache/doris/pull/62913
### What problem does this PR solve?
Fix CIR-20019 statistics-table self-query storm. When planning internal
stats SQL that scans system tables such as __internal_schema.column_statistics,
join-reorder stats validation could request column statistics for the stats
table itself before computeOlapScan's system-table UNKNOWN guard was reached.
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: System-table OlapScan now skips the pre-join-reorder
invalid-stats validation, and OlapTableStatistics returns UNKNOWN for
system-table column and partition-column stats as a centralized safety net.
### Release note
None
### Check List (For Author)
- Test: Unit Test
- mvn -pl fe-core
-Dtest=org.apache.doris.nereids.stats.StatsCalculatorTest,org.apache.doris.statistics.StatisticsCacheTest
-DfailIfNoTests=false -DskipUT=false -DskipITs -Dcheckstyle.skip=true
-Dmaven.build.cache.enabled=false test
- ./build.sh --fe -j20
- Behavior changed: No
- Does this need documentation: No
--
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]