[ 
https://issues.apache.org/jira/browse/CALCITE-6585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde resolved CALCITE-6585.
----------------------------------
    Fix Version/s: 1.38.0
       Resolution: Fixed

Fixed in 
[60e0a3f|https://github.com/apache/calcite/commit/60e0a3f441a009e55a36cac192253a436bec3f6d].

> In the Postgres TO_CHAR function, improve caching
> -------------------------------------------------
>
>                 Key: CALCITE-6585
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6585
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Julian Hyde
>            Assignee: Norman Jordan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.38.0
>
>
> In the Postgres TO_CHAR function (and similar functions added in 
> CALCITE-6358), cache the formatter using the same technique used in 
> CALCITE-5914.
> Also pass the {{DataContext}} into the constructor of {{class 
> DataFormatFunction}}, so that it does not need to be passed to each call to 
> {{toCharPg}}.
> In {{DateFormatFunction}} obsolete static field {{LOCAL_ZONE}} and instead 
> populate a non-static field {{zoneId}} from the {{DataContext}} constructor 
> parameter.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to