问题 spark sql当前时间戳功能


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

谢谢


3924
2017-12-07 14:40


起源



答案:


尝试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. 

13
2017-12-07 14:50



得到它我在功能结束时错过了()......databricks.com/blog/2015/09/16/... - sri hari kali charan Tummala


答案:


尝试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. 

13
2017-12-07 14:50



得到它我在功能结束时错过了()......databricks.com/blog/2015/09/16/... - sri hari kali charan Tummala