Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19274

Sql. Jdbc client. Support TIMESTAMP WITH LOCAL TIME ZONE type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0
    • sql
    • Docs Required

    Description

      The TIMESTAMP WITH LOCAL TIME ZONE data type is a variant of TIMESTAMP that includes a time zone offset in its value. Data stored in the database is normalized to the database time zone (UTC) and time zone offset is not stored as part of the column data. When the data is retrieved, it to be returned in the user's local session time zone.

      i.e:

      CREATE TABLE timestamp(ts TIMESTAMP, t_tz TIMESTAMP WITH LOCAL TIME ZONE);
      SET TIME ZONE 'tz1';
      INSERT INTO timestamp VALUES ('2011-01-01 01:01:01', TIMESTAMP WITH LOCAL TIME ZONE '2011-01-01 01:01:01');
      SET TIME ZONE 'tz2';
      INSERT INTO timestamp VALUES ('2011-01-01 01:01:01', TIMESTAMP WITH LOCAL TIME ZONE '2011-01-01 01:01:01');
      ...
      select * from timestamp;

      returned rows need to be different in case of different tz1 and tz2 offsets but they are equals for now. Also returned representation need to be present in user session time zone.

      Update from 26.02.2024:

      Definition of done for this task:

      • Client time zone is passed to server (check other database implementations to decide how and when to pass it).
      • Data of type "TIMESTAMP With LOCAL TIME ZONE" can be written/read correctly using the dynamic parameter.

      Attachments

        Issue Links

          Activity

            People

              xtern Pavel Pereslegin
              zstan Evgeny Stanilovsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 2h 40m
                  2h 40m