Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6138

Parser does not accept TIMESTAMP WITH TIME ZONE as a data type

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The current SQL grammar accepts either TIMESTAMP WITHOUT TIME ZONE or TIMESTAMP WITH LOCAL TIME ZONE. It does not accept the version without LOCAL: TIMESTAMP WITH TIME ZONE. This is a legal type in other SQL dialects, and it appears in the SQL 92 standard.

      The Calcite documentation also lists the rejected type as a legal scalar type: https://calcite.apache.org/docs/reference.html#scalar-types

      So there is a bug: either the compiler is wrong, or the documentation is wrong. The main question is "which one?"

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mbudiu Mihai Budiu
            mbudiu Mihai Budiu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment