[Improvement](multi catalog, statistics)Support two level external statistics cache loader (#20906)

The current column statistic cache loader is to load data from column_statistics olap table.
This pr is to change the cache loader logic to First load from column_statistics olap table, if no data was loaded, then load from table metadata. This is mainly to support fetch statistics data for external catalog using HMS or Iceberg api.
This is the first PR, next pr will implement the fetch logic for different external catalogs.
This commit is contained in:
Jibing-Li
2023-06-20 16:43:18 +08:00
committed by GitHub
parent cb89af49e7
commit ca8f51602b
17 changed files with 279 additions and 27 deletions

View File

@ -1747,7 +1747,7 @@ public class Config extends ConfigBase {
* Otherwise, use external catalog metadata.
*/
@ConfField(mutable = true)
public static boolean collect_external_table_stats_by_sql = false;
public static boolean collect_external_table_stats_by_sql = true;
/**
* Max num of same name meta informatntion in catalog recycle bin.