hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefty Leverenz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15511) Provide an option in months_between UDF to disable rounding-off
Date Tue, 27 Dec 2016 07:10:01 GMT

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

Lefty Leverenz commented on HIVE-15511:
---------------------------------------

Doc note:  The roundOff option for months_between() needs to be documented in the wiki (with
version information).

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

Added a TODOC2.2 label.

> Provide an option in months_between UDF to disable rounding-off
> ---------------------------------------------------------------
>
>                 Key: HIVE-15511
>                 URL: https://issues.apache.org/jira/browse/HIVE-15511
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Rajesh Balamohan
>            Assignee: Rajesh Balamohan
>            Priority: Minor
>              Labels: TODOC2.2
>             Fix For: 2.2.0
>
>         Attachments: HIVE-15511.1.patch, HIVE-15511.2.patch, HIVE-15511.3.patch, HIVE-15511.4.patch
>
>
> Rounding off was added in {{GenericUDFMonthsBetween}} so that it can be compatible with
systems like oracle. However, there are places where rounding off is not needed. 
> E.g "CAST(MONTHS_BETWEEN(l_shipdate, l_commitdate) / 12 AS INT)" may not need rounding
off via BigDecimal which is compute intensive.



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

Mime
View raw message