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

Timestamp format different in HiveCLI and Beeline

Log workAgile BoardRank to TopRank to BottomAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Beeline, CLI
    • Labels:
      None

      Description

      The issue can be reproduced with the following commands:

      create table timestamp_test(t timestamp);
      insert into table timestamp_test values('2000-01-01 01:00:00');
      select * from timestamp_test;
      

      The timestamp is displayed without nanoseconds in HiveCLI:

      2000-01-01 01:00:00
      

      When the exact same timestamp is displayed in BeeLine it displays:

      2000-01-01 01:00:00.0
      

        Attachments

        1. HIVE-17230.1.patch
          94 kB
          Marta Kuczora
        2. HIVE-17230.2.patch
          850 kB
          Marta Kuczora
        3. HIVE-17230.3.patch
          899 kB
          Marta Kuczora

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:

                Issue deployment