Skip to content

[v3-3-test] Add partition date filters to Dag run API (#68682) - #70304

Merged
henry3260 merged 1 commit into
v3-3-testfrom
backport-8e6f28f-v3-3-test
Jul 23, 2026
Merged

[v3-3-test] Add partition date filters to Dag run API (#68682)#70304
henry3260 merged 1 commit into
v3-3-testfrom
backport-8e6f28f-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Add partition date support to Dag run API

  • Reject partition date filters on non-partitioned Dags in Dag run API

Runs of a non-partitioned Dag never carry a partition_date, so filtering
by partition_date_start/partition_date_end silently returned an empty
list, which reads as "no runs in that window" rather than "this Dag has
no partition dimension". Return 400 instead, mirroring how supplying a
partition_key for a non-partitioned Dag is rejected.

  • Rename Dag run partition date filters to partition_date_gte/lte

The other range filters on the list Dag runs endpoint use the _gte/_lte
suffix convention (start_date_gte, logical_date_lte, ...), so the new
partition date bounds should follow it too. Also clarify in the query
parameter descriptions that the inclusive bounds cover the whole
calendar day, and fold the partition-date branches into a single
condition so the 400 paths and the filter path read in one place.
(cherry picked from commit 8e6f28f)

Co-authored-by: Henry Chen henrychen@apache.org

* Add partition date support to Dag run API

* Reject partition date filters on non-partitioned Dags in Dag run API

Runs of a non-partitioned Dag never carry a partition_date, so filtering
by partition_date_start/partition_date_end silently returned an empty
list, which reads as "no runs in that window" rather than "this Dag has
no partition dimension". Return 400 instead, mirroring how supplying a
partition_key for a non-partitioned Dag is rejected.

* Rename Dag run partition date filters to partition_date_gte/lte

The other range filters on the list Dag runs endpoint use the _gte/_lte
suffix convention (start_date_gte, logical_date_lte, ...), so the new
partition date bounds should follow it too. Also clarify in the query
parameter descriptions that the inclusive bounds cover the whole
calendar day, and fold the partition-date branches into a single
condition so the 400 paths and the filter path read in one place.
(cherry picked from commit 8e6f28f)

Co-authored-by: Henry Chen <henrychen@apache.org>
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Jul 23, 2026
@henry3260
henry3260 merged commit 62423e3 into v3-3-test Jul 23, 2026
142 of 151 checks passed
@henry3260
henry3260 deleted the backport-8e6f28f-v3-3-test branch July 23, 2026 17:18
@github-actions github-actions Bot added this to the Airflow 3.3.1 milestone Jul 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

@vatsrahul1001 vatsrahul1001 added the type:misc/internal Changelog: Misc changes that should appear in change log label Jul 27, 2026
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
* Add partition date support to Dag run API

* Reject partition date filters on non-partitioned Dags in Dag run API

Runs of a non-partitioned Dag never carry a partition_date, so filtering
by partition_date_start/partition_date_end silently returned an empty
list, which reads as "no runs in that window" rather than "this Dag has
no partition dimension". Return 400 instead, mirroring how supplying a
partition_key for a non-partitioned Dag is rejected.

* Rename Dag run partition date filters to partition_date_gte/lte

The other range filters on the list Dag runs endpoint use the _gte/_lte
suffix convention (start_date_gte, logical_date_lte, ...), so the new
partition date bounds should follow it too. Also clarify in the query
parameter descriptions that the inclusive bounds cover the whole
calendar day, and fold the partition-date branches into a single
condition so the 400 paths and the filter path read in one place.
(cherry picked from commit 8e6f28f)

Co-authored-by: Henry Chen <henrychen@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants