forked from apache/calcite
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CALCITE-6585] In the Postgres TO_CHAR function, improve caching
* Refactored code to separate parsing a date/time format and applying it * A parsed date/time format can now be reused * Fixed up some minor issues with when to space pad day or month names * Removed usage of ZoneOffset.get() * Reworked to no longer use static methods for TO_CHAR and TO_TIMESTAMP * ToCharPgImplementor and ToTimestampPgImplementor now use a a new instance of DateFormatFunctionPg * Moved the PostgreSQL date/time formatting and parsing methods to their own class * Changed how the ZoneId of UTC is obtained * Added some tests with format reuse Close apache#3978
- Loading branch information
1 parent
a4a27e3
commit 60e0a3f
Showing
42 changed files
with
2,610 additions
and
1,822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.