Skip to content

chore: Move OpenLineage methods to BaseSQLOperator - #58897

Merged
potiuk merged 1 commit into
apache:mainfrom
kacpermuda:feat-ol-sql-check-operators
Dec 1, 2025
Merged

potiuk merged 1 commit into
apache:mainfrom
kacpermuda:feat-ol-sql-check-operators

Conversation

@kacpermuda

Copy link
Copy Markdown
Collaborator

Move OpenLineage methods from SqlExecuteQueryOperator to its base class: BaseSQLOperator. This way all the sql operators will have OL support, as the execution logic is mostly the same.

Apart from OL-related changes, I adjusted the error message in SQLColumnCheckOperator to include more information about failed checks, not only the name of metric that failed. Also saved some local information as instance attr in SQLColumnCheckOperator and BranchSQLOperator, so that we can access those in the OL listener later (will submit separate PR with that).


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

@potiuk
potiuk merged commit 29ace33 into apache:main Dec 1, 2025
@potiuk

potiuk commented Dec 1, 2025

Copy link
Copy Markdown
Member

Nice! One move -> plenty of OL support added :)

@kacpermuda
kacpermuda deleted the feat-ol-sql-check-operators branch December 2, 2025 07:17
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
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