My question is : Is there a way to do find the last day of a month in Hive, like Oracle SQL function ? :
LAST_DAY(D_Dernier_Jour)
Thanks.
You could make use of last_day(dateString)
UDF provided by Nexr. It returns the last day of the month based on a date string with yyyy-MM-dd HH:mm:ss pattern.
Example:
SELECT last_day('2003-03-15 01:22:33') FROM src LIMIT 1;
2003-03-31 00:00:00
You need to pull it from their Github Repository and build. Their wiki page contains all the info on how to build and use it with Hive.
HTH