[Fix](multi catalog)Return all partition values while reading hive table. (#19434)

Return all partition values while reading hive table.
Add a config item for the max value of hive table to partition list cache.
Default value is 100.
This commit is contained in:
Jibing-Li
2023-05-10 10:55:33 +08:00
committed by GitHub
parent d24dd12b20
commit 78435823b6
3 changed files with 11 additions and 2 deletions

View File

@ -1679,6 +1679,14 @@ public class Config extends ConfigBase {
@ConfField(mutable = false, masterOnly = false)
public static long max_hive_partition_cache_num = 100000;
@ConfField(mutable = false, masterOnly = false, description = {"Hive表到分区名列表缓存的最大数量。",
"Max cache number of hive table to partition names list."})
public static long max_hive_table_catch_num = 1000;
@ConfField(mutable = false, masterOnly = false, description = {"获取Hive分区值时候的最大返回数量,-1代表没有限制。",
"Max number of hive partition values to return while list partitions, -1 means no limitation."})
public static short max_hive_list_partition_num = -1;
/**
* Max cache loader thread-pool size.
* Max thread pool size for loading external meta cache