2015-12-07 167 views

回答

9

試試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. 
+1

得到它我錯過了()函數的結尾...... https://databricks.com/blog/2015/09/16/spark-1-5-dataframe-api-highlights- datetimestring處理時間間隔和-udafs.html –