在spark sql中是否有一个sql fucntion返回当前时间戳,impala中的例子NOW()是返回当前时间戳的函数在spark sql中有类似的吗?
谢谢
在spark sql中是否有一个sql fucntion返回当前时间戳,impala中的例子NOW()是返回当前时间戳的函数在spark sql中有类似的吗?
谢谢
尝试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.
尝试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.