Created 03-16-2017 04:17 AM
Created 03-16-2017 05:30 AM
Do you need quarter of the year for some date, timestamp, or string? If yes then Hive already has a built-in date functions defined for it :
quarter(date/timestamp/string) |
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
Created 03-16-2017 05:30 AM
Do you need quarter of the year for some date, timestamp, or string? If yes then Hive already has a built-in date functions defined for it :
quarter(date/timestamp/string) |
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
Created 03-23-2017 02:37 AM
In the Hive version prior to 2.2.0 there is no function available, I added support for it recently, see HIVE-16234. Example
SELECT trunc('2017-03-15', 'Q'); '2017-01-01'