Are you interested in Data Engineering Essentials course on Kontext? Learn more
Spark SQL - UNIX timestamp functions
visibility 1,324
comment 0
Function unix_timestamp() returns the UNIX timestamp of current time. You can also specify a input timestamp value. Example: spark-sql> select unix_timestamp();
unix_timestamp(current_timestamp(), yyyy-MM-dd HH:mm:ss)
1610174099
spark-sql> select unix_timestamp(current_timestamp ...
thumb_up 0
Log in with external accounts
comment Comments
No comments yet.