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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: UDF
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      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

            • Assignee:
              jdere Jason Dere
              Reporter:
              jdere Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: