Wednesday 23 November 2022

Hive: to_date: Extract date part of the timestamp

Signature

to_date(string timestamp)
hive> SELECT to_date('2021-02-05 05:37:23');
OK
_c0
2021-02-05
Time taken: 0.042 seconds, Fetched: 1 row(s)

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment