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

timestamp support is limited to 4 digit year

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Types

    Description

      Hive doesn't handle timestamp type that have a year with more than 4 digits.
      This limitation seems to be primarily around string to timestamp conversion.

      Following insert query would insert NULL record -
      create table ts_test (t timestamp);
      insert into ts_test values ('2015-01-01 1:1:1');
      insert into ts_test values ('20151-01-01 1:1:1');
      select CAST(t as String)  from ts_test;
      +----------------------+--+
      |          t           |
      +----------------------+--+
      | 2015-01-01 01:01:01  |
      | NULL                 |
      +----------------------+--+
      

      Attachments

        Activity

          People

            akhetarp87 Arun Khetarpal
            taksaito Takahiko Saito
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: