[fix](cache) add sql cache conf cache_result_max_data_size (#22645)

Only the maximum number of rows in sql cache cache_result_max_row_count is not enough. If a row of data is too large, FE may OOM.
This commit is contained in:
Xinyi Zou
2023-08-09 14:46:23 +08:00
committed by GitHub
parent 1d1077c3b6
commit 77d3d4e324
9 changed files with 56 additions and 12 deletions

View File

@ -1172,9 +1172,17 @@ public class Config extends ConfigBase {
/**
* Set the maximum number of rows that can be cached
*/
@ConfField(mutable = true, masterOnly = false)
@ConfField(mutable = true, masterOnly = false, description = {"SQL/Partition Cache可以缓存的最大行数。",
"Maximum number of rows that can be cached in SQL/Partition Cache, is 3000 by default."})
public static int cache_result_max_row_count = 3000;
/**
* Set the maximum data size that can be cached
*/
@ConfField(mutable = true, masterOnly = false, description = {"SQL/Partition Cache可以缓存的最大数据大小。",
"Maximum data size of rows that can be cached in SQL/Partition Cache, is 3000 by default."})
public static int cache_result_max_data_size = 31457280; // 30M
/**
* Used to limit element num of InPredicate in delete statement.
*/