Skip to content

Conversation

@kyungjunleeme
Copy link
Contributor

While working on
#53241
and
#53311,
I identified some areas that would benefit from refactoring,
as maintaining consistency in the codebase helps improve maintainability.

As for #53302,
it already reflects the changes I was planning to make, so I decided to skip that part.

Align with other providers by using get_conn_id() instead of direct attribute access

        return self.get_connection(self.redshift_conn_id)  # before
        return self.get_connection(self.get_conn_id())  # after

^ 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 airflow-core/newsfragments.

@kyungjunleeme kyungjunleeme changed the title Refactor/get conn dbapihook in providers Refactoring get con part dbapihook in providers Jul 14, 2025
@kyungjunleeme
Copy link
Contributor Author

@jscheffl Thanks to ur pr review, I think that this refactoring can be helpful. :)

@kyungjunleeme kyungjunleeme force-pushed the refactor/get_conn_dbapihook_in_providers branch from c9ca77e to 58df219 Compare July 14, 2025 10:19
@jscheffl jscheffl merged commit f244427 into apache:main Jul 14, 2025
75 checks passed
@jscheffl
Copy link
Contributor

Cool!

prdai pushed a commit to prdai/airflow that referenced this pull request Jul 15, 2025
* CHG: get_connection in redshift_sql

* CHG: get_connection in exasolhook

* CHG: get_connection in sqlite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants