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 2023/03/31 06:36:00 UTC

[jira] [Commented] (CALCITE-5619) Support PostgreSQL's TO_CHAR function

    [ https://issues.apache.org/jira/browse/CALCITE-5619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707148#comment-17707148 ] 

Julian Hyde commented on CALCITE-5619:
--------------------------------------

Thanks for the PR, [~tnieradzik].

In his fix for CALCITE-5180 (FORMAT_TIMESTAMP, etc.) a few weeks ago, [~tjbanghart] started adding a framework for these kinds of functions. Could you adapt your fix to use the same framework (i.e. set up a POSTGRES map in {{FormatModels}} similar to [BIG_QUERY|https://github.com/apache/calcite/blob/49a0d5e9c1ef65618425189b22f2a2b5ed51f6d8/core/src/main/java/org/apache/calcite/util/format/FormatModels.java#L77]). 

> Support PostgreSQL's TO_CHAR function
> -------------------------------------
>
>                 Key: CALCITE-5619
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5619
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Tim Nieradzik
>            Assignee: Tim Nieradzik
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The following query cannot be parsed because `to_char` is not supported:
> `select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.MS TZ')`



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