Add partition date filters to Dag run API - #68682
Merged
henry3260 merged 3 commits intoJul 23, 2026
Merged
Conversation
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
2 times, most recently
from
June 18, 2026 06:25
01286aa to
daffc23
Compare
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
from
June 18, 2026 09:25
daffc23 to
b83ca2a
Compare
henry3260
marked this pull request as ready for review
June 18, 2026 13:05
henry3260
requested review from
bbovenzi,
bugraoz93,
choo121600,
dheerajturaga,
ephraimbuddy,
guan404ming,
jason810496,
pierrejeambrun,
potiuk,
rawwar,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
June 18, 2026 13:05
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
from
June 25, 2026 09:42
b83ca2a to
0850361
Compare
pierrejeambrun
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR.
PR description isn't up to date. Added partition_date to DAGRunResponse ...
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
from
July 1, 2026 17:03
0850361 to
7ae4411
Compare
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
from
July 1, 2026 18:03
b4629b6 to
fc2d0c1
Compare
Contributor
Author
|
gentle ping @pierrejeambrun @bugraoz93 Could I get your review when you got a chance? Thanks! |
jason810496
reviewed
Jul 15, 2026
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
from
July 19, 2026 17:34
fc2d0c1 to
336df74
Compare
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
from
July 20, 2026 09:54
336df74 to
d79e0f1
Compare
bbovenzi
reviewed
Jul 21, 2026
bbovenzi
reviewed
Jul 21, 2026
bbovenzi
reviewed
Jul 21, 2026
bbovenzi
reviewed
Jul 21, 2026
bbovenzi
reviewed
Jul 21, 2026
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.
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.
henry3260
force-pushed
the
fix-airflowctl-dags-clear-partition-date
branch
from
July 23, 2026 10:07
b5b63b4 to
3ab6954
Compare
Contributor
Author
|
Applied all comments, waiting for your final review @bbovenzi :) THANKS |
bbovenzi
approved these changes
Jul 23, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
henry3260
added a commit
that referenced
this pull request
Jul 23, 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>
Lee-W
approved these changes
Jul 24, 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>
dabla
pushed a commit
to dabla/airflow
that referenced
this pull request
Aug 14, 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This adds partition-date support to the public GET Dag runs API so clients can list partitioned Dag runs by local calendar day.
The GET
/dags/{dag_id}/dagRunsendpoint now supports:partition_date_startpartition_date_endorder_by=partition_dateThis also updates the generated OpenAPI spec and UI client query types.
Related: #68706
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.