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

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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.4.patch
          86 kB
          Jason Dere
        2. HIVE-13248.3.patch
          81 kB
          Jason Dere
        3. HIVE-13248.2.patch
          75 kB
          Jason Dere
        4. HIVE-13248.1.patch
          69 kB
          Jason Dere

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment