spark sql当前时间戳功能

sri*_*ala 13 apache-spark apache-spark-sql

在spark sql中是否有一个sql fucntion返回当前时间戳,例如在impala中NOW()是返回当前时间戳的函数在spark sql中有类似的吗?

谢谢

Kau*_*hal 20

尝试current_timestamp函数.

current_timestamp() - Returns the current timestamp at the start of query evaluation. All calls of current_timestamp within the same query return the same value. 
Run Code Online (Sandbox Code Playgroud)