Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21095

'Show create table' should not display a time zone for timestamp with local time zone

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0-alpha-1
    • None
    • None

    Description

      SHOW CREATE TABLE shows the time zone that the table was created in (if it contains a TIMESTAMPTZ column). This is also misleading, since it has nothing to do with the actual data or server or user time zone.
      e.g.

      hive> set time zone America/Los_Angeles;
      hive> create table text_local (ts timestamp with local time zone) stored as textfile;
      hive> show create table text_local;
      CREATE TABLE `text_local`(
        `ts` timestamp with local time zone('America/Los_Angeles'))
      

      should be:

      hive> show create table text_local;
      CREATE TABLE `text_local`(
        `ts` timestamp with local time zone)
      

      This was discussed in the community doc Consistent timestamp types in Hadoop SQL engines

      Attachments

        1. HIVE-21095.1.patch
          1 kB
          Karen Coppage
        2. HIVE-21095.2.patch
          2 kB
          Karen Coppage
        3. HIVE-21095.2.patch
          2 kB
          Karen Coppage
        4. HIVE-21095.2.patch
          2 kB
          Karen Coppage
        5. HIVE-21095.3.patch
          3 kB
          Karen Coppage
        6. HIVE-21095.4.patch
          3 kB
          Karen Coppage

        Issue Links

          Activity

            People

              klcopp Karen Coppage
              klcopp Karen Coppage
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: