Skip to content

Fix: Handle SQLAlchemy_URI for Apache Impala #57153

Merged
jason810496 merged 7 commits intoapache:mainfrom
Pyasma:fix/Impala-Hook-URI
Oct 28, 2025
Merged

Fix: Handle SQLAlchemy_URI for Apache Impala #57153
jason810496 merged 7 commits intoapache:mainfrom
Pyasma:fix/Impala-Hook-URI

Conversation

@Pyasma
Copy link
Copy Markdown
Contributor

@Pyasma Pyasma commented Oct 23, 2025

Implemented a SQLAlchemy-compatible sqlalchemy_url property in ImpalaHook.
Added get_uri() method to return a fully formatted URI for Impala connections.
Added unit tests to verify correctness of the sqlalchemy_url property and get_uri() output.
Ran prek pre-commit checks to ensure code quality and formatting.

Related : #38195


^ 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.

@Pyasma
Copy link
Copy Markdown
Contributor Author

Pyasma commented Oct 23, 2025

@jason810496 @Lee-W can you please review this PR

@Lee-W Lee-W self-requested a review October 24, 2025 02:26
Comment thread providers/apache/impala/src/airflow/providers/apache/impala/hooks/impala.py Outdated
Copy link
Copy Markdown
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.

a few nits. not major issue. great job!

Comment thread providers/apache/impala/src/airflow/providers/apache/impala/hooks/impala.py Outdated
@Pyasma
Copy link
Copy Markdown
Contributor Author

Pyasma commented Oct 27, 2025

Hey @jason810496 can you review this PR?

@Pyasma Pyasma requested a review from KoviAnusha October 27, 2025 12:56
Copy link
Copy Markdown
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

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

happy to merge if no other concerns

@jason810496 jason810496 merged commit bd04e2b into apache:main Oct 28, 2025
77 checks passed
odaneau-astro pushed a commit to odaneau-astro/airflow that referenced this pull request Mar 18, 2026
* Added SQL alchemy compatible code in impala.py

* Updating Test

* adding two test

* Completed test

* Finish writing test

* Impala-hook

* changed Not in -> !=
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.

5 participants