-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30437/
-----------------------------------------------------------

Review request for hive.


Repository: hive-git


Description
-------

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.

https://issues.apache.org/jira/browse/HIVE-9518


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java 23d77ca 
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFDateDiff.java 
1ecd835 
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFDateDiffBase.java 
PRE-CREATION 
  
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFMonthsBetween.java 
PRE-CREATION 
  ql/src/test/TestGenericUDFMonthsBetween.java PRE-CREATION 

Diff: https://reviews.apache.org/r/30437/diff/


Testing
-------

SEE ALSO ql/src/test/TestGenericUDFMonthsBetween.java


Thanks,

XIAOBING ZHOU

Reply via email to