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

Change date_add/date_sub/to_date functions to return Date type rather than String

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.1.0
    • UDF
    • None
    • Incompatible change
    • The return type of the DATE_ADD/DATE_SUB/TO_DATE functions has been changed from string to date.

    Description

      Some of the original "date" related functions return string values rather than Date values, because they were created before the Date type existed in Hive. We can try to change these to return Date in the 2.x line.

      Date values should be implicitly convertible to String.

      Attachments

        1. HIVE-13248.1.patch
          69 kB
          Jason Dere
        2. HIVE-13248.2.patch
          75 kB
          Jason Dere
        3. HIVE-13248.3.patch
          81 kB
          Jason Dere
        4. HIVE-13248.4.patch
          86 kB
          Jason Dere

        Activity

          People

            jdere Jason Dere
            jdere Jason Dere
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: