[ 
https://issues.apache.org/jira/browse/HIVE-9357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283595#comment-14283595
 ] 

Lefty Leverenz commented on HIVE-9357:
--------------------------------------

Doc note:  This should be documented in the Date Functions section of the UDFs 
wikidoc (with version information and a link to this issue).

* [Hive Operators and UDFs -- Date Functions | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-DateFunctions]

A release note would also be helpful.  Does the description show the committed 
functionality, or was it modified after the discussion?

> Create ADD_MONTHS UDF
> ---------------------
>
>                 Key: HIVE-9357
>                 URL: https://issues.apache.org/jira/browse/HIVE-9357
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>              Labels: TODOC15
>             Fix For: 0.15.0
>
>         Attachments: HIVE-9357.1.patch, HIVE-9357.2.patch, HIVE-9357.3.patch
>
>
> 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'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to