How to calculate Date difference in Hive

后端 未结 4 2048
梦如初夏
梦如初夏 2021-02-01 04:17

I\'m a novice. I have a employee table with a column specifying the joining date and I want to retrieve the list of employees who have joined in the last 3 months. I understand

4条回答
  •  無奈伤痛
    2021-02-01 05:07

    yes datediff is implemented; see: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF

    By the way I found this by Google-searching "hive datediff", it was the first result ;)

提交回复
热议问题