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

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

Nils Braun created CALCITE-4313:
-----------------------------------

             Summary: 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


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)