You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Nils Braun (Jira)" <ji...@apache.org> on 2020/11/15 11:12:00 UTC

[jira] [Commented] (CALCITE-4313) Date functions CURRENT_* have type different from documentation

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

Nils Braun commented on CALCITE-4313:
-------------------------------------

[~julianhyde] is there anything more I can help you with this issue?

> Date functions CURRENT_* have type different from documentation
> ---------------------------------------------------------------
>
>                 Key: CALCITE-4313
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4313
>             Project: Calcite
>          Issue Type: Bug
>    Affects Versions: 1.26.0
>            Reporter: Nils Braun
>            Priority: Minor
>
> The return types of the {{CURRENT_TIME}}, {{CURRENT_DATE}} and {{CURRENT_TIMESTAMP}} operations set in the SqlStdOperatorTable.java (e.g. [here|#L1882]) is different from the [documentation|https://calcite.apache.org/docs/reference.html#datetime-functions]: they are missing the {{_WITH_LOCAL_TIMEZONE}}.
>  I am not an expert, but I think changing them to {{TIME_WITH_LOCAL_TIME_ZONE}} will already do the trick. I am happy to do a PR, if this is really the only thing to do.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)