You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2024/09/30 00:39:00 UTC
[jira] [Resolved] (CALCITE-6596) Enable function-level cache by default
[ https://issues.apache.org/jira/browse/CALCITE-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde resolved CALCITE-6596.
----------------------------------
Resolution: Fixed
Fixed in [cd6762e|https://github.com/apache/calcite/commit/cd6762e68f357fd46715107a55f6c0f342d9becb].
> Enable function-level cache by default
> --------------------------------------
>
> Key: CALCITE-6596
> URL: https://issues.apache.org/jira/browse/CALCITE-6596
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Priority: Major
> Fix For: 1.38.0
>
>
> CALCITE-5914 added the function-level cache (to allow functions such as REGEXP_CONTAINS to avoid computing expensive state every call) with the intention of having a default cache size of 1,000, but the code actually set the maximum size to 0, effectively disabling the cache.
> This change sets the default to 1,000.
> (The error was spotted by [~rrueda] while reviewing [PR 3978|https://github.com/apache/calcite/pull/3978].)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)