Σημείωση
Η πρόσβαση σε αυτή τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να συνδεθείτε ή να αλλάξετε καταλόγους.
Η πρόσβαση σε αυτή τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να αλλάξετε καταλόγους.
Returns the current timestamp at the start of query evaluation as a TimestampType column. All calls of current_timestamp within the same query return the same value.
For the corresponding Databricks SQL function, see current_timestamp function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.current_timestamp()
Returns
pyspark.sql.Column: current date and time.
Examples
from pyspark.databricks.sql import functions as dbf
spark.range(1).select(dbf.current_timestamp()).show(truncate=False)