नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
Returns the current date at the start of query evaluation as a DateType column. All calls of current_date within the same query return the same value.
For the corresponding Databricks SQL function, see current_date function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.current_date()
Returns
pyspark.sql.Column: current date.
Examples
from pyspark.databricks.sql import functions as dbf
spark.range(1).select(dbf.current_date()).show()