Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12191 Hive timestamp problems
  3. HIVE-12196

NPE when converting bad timestamp value

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.3.0, 2.0.0
    • Hive
    • None

    Description

      When I convert a timestamp value that is slightly wrong, the result is a NPE. Other queries correctly reject the timestamp:

      hive> select from_utc_timestamp('2015-04-11-12:24:34.535', 'UTC');
      FAILED: NullPointerException null
      hive> select TIMESTAMP '2015-04-11-12:24:34.535';
      FAILED: SemanticException Unable to convert time literal '2015-04-11-12:24:34.535' to time value.
      

      Attachments

        1. HIVE-12196.patch
          3 kB
          Aihua Xu

        Activity

          People

            aihuaxu Aihua Xu
            rdblue Ryan Blue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: