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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.20.0
    • 1.21.0
    • 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

              danny0405 Danny Chen
              danny0405 Danny Chen
              Votes:
              0 Vote for this issue
              Watchers:
              4 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