Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
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'