How do we stamp the current execution date onto all ingested records in an ETL pipeline?
current_date() returns the current calendar date as a DateType Column evaluated at query execution time.
Batch ETL partitioning, daily audit stamping, and tracking lakehouse ingestion dates.
from pyspark.sql.functions import current_date
df = df.withColumn("ingestion_date", current_date())Practice typing production-grade PySpark code for Injecting Current Date with current_date().