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

date_add()/date_sub() should allow tinyint/smallint/bigint arguments in addition to int

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • UDF

    Description

      hive> select c1, date_add('1985-01-01', c1) from short1;
      FAILED: SemanticException [Error 10014]: Line 1:11 Wrong arguments 'c1':  DATE_ADD() only takes INT types as second  argument, got SHORT
      

      We should allow date_add()/date_sub() to take any integral type for the 2nd argument, rather than just int.

      Attachments

        1. HIVE-9396.3.patch
          21 kB
          Sergio Peña
        2. HIVE-9396.4.patch
          21 kB
          Sergio Peña

        Activity

          People

            spena Sergio Peña
            jdere Jason Dere
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: