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

Refactor Sqlalchemy queries to 2.0 style (Part 6) #32645

Merged
merged 5 commits into from
Jul 21, 2023

Conversation

phanikumv
Copy link
Contributor

This is a continuation of the effort to refactor the queries to sqlalchemy 2.0

related: #28723


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@phanikumv phanikumv added the full tests needed We need to run full set of tests for this PR to merge label Jul 17, 2023
@phanikumv phanikumv closed this Jul 17, 2023
@phanikumv phanikumv reopened this Jul 17, 2023
@phanikumv phanikumv added the use public runners Makes sure that Public runners are used even if commiters creates the PR (useful for testing) label Jul 17, 2023
@phanikumv phanikumv closed this Jul 17, 2023
@phanikumv phanikumv reopened this Jul 17, 2023
airflow/models/trigger.py Outdated Show resolved Hide resolved
airflow/models/trigger.py Outdated Show resolved Hide resolved
airflow/models/trigger.py Outdated Show resolved Hide resolved
airflow/models/trigger.py Outdated Show resolved Hide resolved
airflow/models/trigger.py Outdated Show resolved Hide resolved
@phanikumv phanikumv force-pushed the sqla_serialized branch 4 times, most recently from 99224d1 to ee39200 Compare July 20, 2023 05:40
airflow/models/trigger.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ephraimbuddy ephraimbuddy left a comment

Choose a reason for hiding this comment

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

Just minor observations

)
serialized_dag_db = session.execute(
select(cls.dag_hash, cls.processor_subdir).where(cls.dag_id == dag.dag_id)
).first()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use limit here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

using limit doesnt work somehow

airflow/models/serialized_dag.py Outdated Show resolved Hide resolved
airflow/models/serialized_dag.py Outdated Show resolved Hide resolved
airflow/models/serialized_dag.py Outdated Show resolved Hide resolved
@phanikumv phanikumv merged commit c7c0dee into apache:main Jul 21, 2023
@phanikumv phanikumv deleted the sqla_serialized branch July 21, 2023 02:42
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Aug 2, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:serialization area:Triggerer full tests needed We need to run full set of tests for this PR to merge type:misc/internal Changelog: Misc changes that should appear in change log use public runners Makes sure that Public runners are used even if commiters creates the PR (useful for testing)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants