Details
-
Improvement
-
Status: Closed
-
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
-
-
CALCITE-6775 ToChar and ToTimestamp PG implementors should use translator's root instead of creating a new root expression
-
- Closed
-
- relates to
-
CALCITE-6596 Enable function-level cache by default
-
- Closed
-
-
CALCITE-6580 Remove Locale.setDefault
-
- Closed
-
- links to