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.
Should accept date, timestamp and string arguments in the format 'yyyy-MM-dd' or 'yyyy-MM-dd HH:mm:ss'.
The result should be rounded to 8 decimal places.
Attachments
Attachments
Issue Links
- is related to
-
HIVE-9472 Implement 7 simple UDFs added to Hive
- Closed
- links to