Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3213 Support complex type expressions for SqlDataTypeSpec
  3. CALCITE-3238

Support Time Zone suffix of DateTime types for SqlDataTypeSpec

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.20.0
    • Fix Version/s: 1.21.0
    • Component/s: core

      Description

      This is the grammar copied from SQL-2011:

      <datetime type> ::=
          DATE
        | TIME [ <left paren> <time precision> <right paren> ] [ <with or without time zone> ]
        | TIMESTAMP [ <left paren> <timestamp precision> <right paren> ]
              [ <with or without time zone> ]
      
      <with or without time zone> ::=
            WITH TIME ZONE
          | WITHOUT TIME ZONE
      
      <time precision> ::=
         <time fractional seconds precision>
      
      <timestamp precision> ::=
         <time fractional seconds precision>
      
      <time fractional seconds precision> ::=
         <unsigned integer>
      

      We extend this grammar to support "with local time zone" definition:

      time(0) with local time zone
      timestamp(0) with local time zone
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danny0405 Danny Chen
                Reporter:
                danny0405 Danny Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m