apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
11.8k stars 3.11k forks source link

[improvement](statistics)Use real base index id to fetch stats cache. (#36914) #36992

Closed Jibing-Li closed 3 days ago

Jibing-Li commented 3 days ago

For historical reason, statistics tables use -1 for OlapTable base index id. This brings many if/else branch for stats calculate. This pr is to screen the -1 for Nereids. The stats user could use the real base index id to fetch stats cache. Will do the id translation inside the get cache api.

backport: https://github.com/apache/doris/pull/36914

doris-robot commented 3 days ago

Thank you for your contribution to Apache Doris. Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website. See Doris Document.

Jibing-Li commented 3 days ago

run buildall

Jibing-Li commented 3 days ago

run external