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

Create ADD_MONTHS UDF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • UDF
    • None
    • Returns the date that is num_months after start_date

    Description

      ADD_MONTHS adds a number of months to startdate:
      add_months('2015-01-14', 1) = '2015-02-14'
      add_months('2015-01-31', 1) = '2015-02-28'
      add_months('2015-02-28', 2) = '2015-04-30'
      add_months('2015-02-28', 12) = '2016-02-29'

      Attachments

        1. HIVE-9357.1.patch
          14 kB
          Alexander Pivovarov
        2. HIVE-9357.2.patch
          14 kB
          Alexander Pivovarov
        3. HIVE-9357.3.patch
          14 kB
          Alexander Pivovarov

        Issue Links

          Activity

            People

              apivovarov Alexander Pivovarov
              apivovarov Alexander Pivovarov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: