hive - Equivalent months_between function for HiveQL -


i'm trying use hive calcuate months between 2 dates years , decades apart. in netezza used: months_between(this_month('date_1'),this_month(date_2)) trying translate hive , don't think there existing date function or udf available. has tried stagger existing hive commands accomplish same goal?

this has been fixed in latest version of hive (1.2.0) "months_between" available.

https://issues.apache.org/jira/browse/hive-9518


Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -