Skip to content

[v3-3-test] Remove redundant ORM result uniquing in core queries - #69918

Merged
pierrejeambrun merged 1 commit into
apache:v3-3-testfrom
astronomer:backport-69913
Jul 15, 2026
Merged

[v3-3-test] Remove redundant ORM result uniquing in core queries#69918
pierrejeambrun merged 1 commit into
apache:v3-3-testfrom
astronomer:backport-69913

Conversation

@pierrejeambrun

Copy link
Copy Markdown
Member

Backport of #69913 to v3-3-test.

Cherry-picked from 4e0f297.

One conflict, in airflow-core/src/airflow/api_fastapi/core_api/routes/ui/grid.py: on main the grid-runs query returns a 3-tuple (run, has_missed, has_note), but v3-3-test doesn't have the has_note column yet, so it returns a 2-tuple (run, has_missed). Kept the release-branch 2-tuple shape and applied only this PR's actual change (dropping .unique()). The other 6 files applied as pure .unique() removals.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

The affected queries select unique entities or only eager-load scalar relationships, so identity filtering adds unnecessary result processing.

(cherry picked from commit 4e0f297)
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:Scheduler including HA (high availability) scheduler labels Jul 15, 2026
@pierrejeambrun pierrejeambrun removed the area:Scheduler including HA (high availability) scheduler label Jul 15, 2026
@pierrejeambrun
pierrejeambrun merged commit 3046b84 into apache:v3-3-test Jul 15, 2026
76 checks passed
@pierrejeambrun
pierrejeambrun deleted the backport-69913 branch July 15, 2026 13:14
@github-actions github-actions Bot added this to the Airflow 3.3.1 milestone Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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
The affected queries select unique entities or only eager-load scalar relationships, so identity filtering adds unnecessary result processing.

(cherry picked from commit 4e0f297)

Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com>
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 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