How to select current date in Hive SQL

后端 未结 6 841
谎友^
谎友^ 2020-12-24 00:11

How do we get the current system date in Hive? In MySQL we have select now(), can any one please help me to get the query results. I am very new to Hive, is there a proper d

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-24 00:59

    The functions current_date and current_timestamp are now available in Hive 1.2.0 and higher, which makes the code a lot cleaner.

提交回复
热议问题