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

Hive returns wrong value for select query involving time conversion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • UDF
    • None

    Description

      Select to_date(CAST(FROM_UNIXTIME(UNIX_TIMESTAMP(date_add('0021-02-01',cast(20 as int)),'yyyy-MM-dd')) as timestamp));

      -------------

      _c0
      -------------

      0021-02-23
      -------------

      Attachments

        Activity

          People

            anuragshekhar Anurag Shekhar
            anuragshekhar Anurag Shekhar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: