Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify lazy db sequence implementations #39426

Merged
merged 3 commits into from
May 8, 2024

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented May 6, 2024

LazyXComAccessor and InletEventsAccessor are somewhat similar in purpose. A new LazySelectSequence is introduced with a more generic implementation that fits both use cases. This also implements the Sequence protocol a bit more efficiently in some places.

See #39367 for some context.

@uranusjr uranusjr force-pushed the refactor-sequence-db-interface branch 2 times, most recently from 2574c3c to 6c72107 Compare May 6, 2024 10:57
airflow/models/base.py Show resolved Hide resolved
airflow/models/xcom.py Outdated Show resolved Hide resolved
@uranusjr uranusjr marked this pull request as ready for review May 6, 2024 12:04
airflow/utils/db.py Outdated Show resolved Hide resolved
@uranusjr uranusjr force-pushed the refactor-sequence-db-interface branch 3 times, most recently from 781ef71 to b0e6eaf Compare May 7, 2024 18:57
airflow/utils/db.py Outdated Show resolved Hide resolved
airflow/utils/db.py Outdated Show resolved Hide resolved
Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After second thought, these are just non-blocking nitpicks. I'm good with merging this one

@uranusjr uranusjr force-pushed the refactor-sequence-db-interface branch from 68c00fa to 502bdad Compare May 8, 2024 10:52
LazyXComAccessor and InletEventsAccessor are somewhat similar in
purpose. A new LazySelectSequence is introduced with a more generic
implementation that fits both use cases. This also implements the
Sequence protocol a bit more efficiently in some places.
@uranusjr uranusjr force-pushed the refactor-sequence-db-interface branch from 502bdad to 3ee6f7c Compare May 8, 2024 10:53
@uranusjr uranusjr merged commit a46a732 into apache:main May 8, 2024
40 checks passed
@uranusjr uranusjr deleted the refactor-sequence-db-interface branch May 8, 2024 11:28
pateash pushed a commit to pateash/airflow that referenced this pull request May 13, 2024
@utkarsharma2 utkarsharma2 added this to the Airflow 2.10.0 milestone Jun 3, 2024
@utkarsharma2 utkarsharma2 added the type:improvement Changelog: Improvements label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants