How to select current date in Hive SQL

后端 未结 6 813
谎友^
谎友^ 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 01:06

    According to the LanguageManual, you can use unix_timestamp() to get the "current time stamp using the default time zone." If you need to convert that to something more human-readable, you can use from_unixtime(unix_timestamp()).

    Hope that helps.

提交回复
热议问题