Created 02-23-2016 04:28 PM
Hi,
I want to calculate no. of business days between two dates using hive queries. How can I do it??
Thanks
Mamta
Created 02-23-2016 04:50 PM
Created 02-23-2016 04:32 PM
you need to come up with your own logic based on https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-DateFunctions
look at datediff function and then just figure out whether it's a business day, you can also write your own UDF. https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-CreatingCustom...
Created 02-23-2016 04:50 PM
Created 02-23-2016 04:51 PM
More information https://github.com/pythian/hive-udfs