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

Unix timestamps don't seem to be read correctly from HDFS as Timestamp column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8.0
    • None
    • None

    Description

      Serega Shepak pointed out that something like

      select cast(date_occurrence as timestamp) from xvlr_data limit 10
      

      where date_occurrence has BIGINT type (timestamp in milliseconds) works. But it doesn't work if the declared type is TIMESTAMP on column. The data in the date_occurence column in unix timestamp in millis.

      Attachments

        1. HIVE-3844.2.patch.txt
          15 kB
          Venki Korukanti
        2. HIVE-3844.1.patch.txt
          14 kB
          Venki Korukanti

        Issue Links

          Activity

            People

              vkorukanti Venki Korukanti
              mgrover Mark Grover
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: