[fix](Nereids) fix sql cache return old value when truncate partition (#34698)

1. fix sql cache return old value when truncate partition
2. use expire_sql_cache_in_fe_second to control the expire time of the sql cache which in the NereidsSqlCacheManager
This commit is contained in:
924060929
2024-05-13 12:05:22 +08:00
committed by yiguolei
parent b3b848f862
commit 5012ddd87a
5 changed files with 65 additions and 25 deletions

View File

@ -1306,12 +1306,18 @@ public class Config extends ConfigBase {
* Minimum interval between last version when caching results,
* This parameter distinguishes between offline and real-time updates
*/
@ConfField(mutable = true, masterOnly = false)
public static int cache_last_version_interval_second = 30;
/**
* Expire sql sql in frontend time
*/
@ConfField(
mutable = true,
masterOnly = false,
callbackClassString = "org.apache.doris.common.NereidsSqlCacheManager$UpdateConfig"
)
public static int cache_last_version_interval_second = 30;
public static int expire_sql_cache_in_fe_second = 300;
/**
* Set the maximum number of rows that can be cached