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.
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.
If you want to avoid custom UDF below is another solution:
to_date(date_sub(add_months(concat(from_unixtime(unix_timestamp('2015-07-28','yyyy-MM-dd'), 'yyyy-MM'),'-01'),1),1))