Skip to content

Use built-in exceptions for JDBC sqlalchemy connection extras - #70535

Merged
potiuk merged 1 commit into
apache:mainfrom
mitre88:narrow-jdbc-hook-exceptions
Aug 13, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
mitre88:narrow-jdbc-hook-exceptions

Conversation

@mitre88

@mitre88 mitre88 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Part of the ongoing clean-up of broad AirflowException usages (enforced by the check-no-new-airflow-exceptions ratchet), following the pattern of #66279.

JdbcHook.sqlalchemy_url raised AirflowException for two input-validation failures in the connection extras: a sqlalchemy_query that is not a dict (now TypeError) and a missing sqlalchemy_scheme (now ValueError). The known_airflow_exceptions.txt entry for the file drops from 2 to 0, and the two existing tests now assert the specific exception types and messages.


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

Generated-by: Claude Code (Fable 5) following the guidelines

@mitre88
mitre88 force-pushed the narrow-jdbc-hook-exceptions branch from 1382cc2 to 888bd52 Compare August 1, 2026 02:24
@potiuk potiuk added the ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green. label Aug 13, 2026
@potiuk
potiuk merged commit eaeb967 into apache:main Aug 13, 2026
79 checks passed
dabla pushed a commit to dabla/airflow that referenced this pull request Aug 14, 2026
No logic change. Rebased PR apache#70535.

Co-authored-by: mitre88 <[email protected]>
imrichardwu pushed a commit to imrichardwu/airflow that referenced this pull request Sep 11, 2026
No logic change. Rebased PR apache#70535.

Co-authored-by: mitre88 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:jdbc ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants