Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.
Attachments
Issue Links
- is related to
-
CALCITE-5914 Cache compiled regular expressions in SQL function runtime
- Closed
- relates to
-
CALCITE-6596 Enable function-level cache by default
- Resolved
-
CALCITE-6580 Remove Locale.setDefault
- Resolved
- links to