[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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user