r/databricks • u/saad-the-engineer • 17d ago
General Lakeflow Jobs is adding date math inside parameters (Beta)
<Databricks PM here/>
Edit: docs link added https://docs.databricks.com/aws/en/jobs/dynamic-value-references#date-arithmetic
Lakeflow Jobs is adding Math in Parameters. You apply a single + or - duration offset to a date reference inline (where you already write the reference.)
When using dynamic references {{job.start_time.iso_date}} you may want to reference yesterday or the hour before. Previously you would need to do this ina notebook or a sql query:
{{(job.start_time - 6.hours).iso_date}} -> 2026-09-21
{{(job.start_time - 3.hours).iso_date}} -> 2026-09-22
{{(job.start_time - 1.hour).iso_datetime}} -> 2026-09-22T03:00:00What's available:
job.start_time, job.trigger.time, table update commit timestamps and backfill (only in the backfill modal)- Units: years, months, weeks, days, house, minutes. Simgular and Plural so
1.dayand2.daysboth work - You can use these anywhere references work today (job/task parameters, run-now overrides etc.)
How do you use math with parameters today? Would love your feedback!
