Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the current timestamp at the start of query evaluation.
For the corresponding Databricks SQL function, see now function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.now()
Returns
pyspark.sql.Column: current timestamp at the start of query evaluation.
Examples
from pyspark.databricks.sql import functions as dbf
spark.range(1).select(dbf.now()).show(truncate=False)
+--------------------------+
|now() |
+--------------------------+
|2023-12-08 15:18:18.482269|
+--------------------------+