diff --git a/core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java b/core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java index 191c4edc9c1..cb8d4c16a6e 100644 --- a/core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java +++ b/core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java @@ -437,10 +437,10 @@ public class LocalExecutionPlanner private final NonEvictableCache accumulatorFactoryCache = buildNonEvictableCache(CacheBuilder.newBuilder() .maximumSize(1000) - .expireAfterWrite(1, HOURS)); + .expireAfterAccess(1, HOURS)); private final NonEvictableCache aggregationWindowFunctionSupplierCache = buildNonEvictableCache(CacheBuilder.newBuilder() .maximumSize(1000) - .expireAfterWrite(1, HOURS)); + .expireAfterAccess(1, HOURS)); @Inject public LocalExecutionPlanner(