hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <>
Subject [jira] [Commented] (HIVE-9518) Implement MONTHS_BETWEEN aligned with Oracle one
Date Fri, 27 Mar 2015 15:06:52 GMT


Hive QA commented on HIVE-9518:

{color:green}Overall{color}: +1 all checks pass

Here are the results of testing the latest attachment:

{color:green}SUCCESS:{color} +1 8681 tests passed

Test results:
Console output:
Test logs:

Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase

This message is automatically generated.

ATTACHMENT ID: 12707661 - PreCommit-HIVE-TRUNK-Build

> Implement MONTHS_BETWEEN aligned with Oracle one
> ------------------------------------------------
>                 Key: HIVE-9518
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Xiaobing Zhou
>            Assignee: Alexander Pivovarov
>         Attachments: HIVE-9518.1.patch, HIVE-9518.2.patch, HIVE-9518.3.patch, HIVE-9518.4.patch,
HIVE-9518.5.patch, HIVE-9518.6.patch, HIVE-9518.7.patch
> This is used to track work to build Oracle like months_between. Here's semantics:
> MONTHS_BETWEEN returns number of months between dates date1 and date2. If date1 is later
than date2, then the result is positive. If date1 is earlier than date2, then the result is
negative. If date1 and date2 are either the same days of the month or both last days of months,
then the result is always an integer. Otherwise Oracle Database calculates the fractional
portion of the result based on a 31-day month and considers the difference in time components
date1 and date2.
> Should accept date, timestamp and string arguments in the format 'yyyy-MM-dd' or 'yyyy-MM-dd
> The result should be rounded to 8 decimal places.

This message was sent by Atlassian JIRA

View raw message