Skip to content

Create deferrable SqlExecuteQueryOperator compatible with Postgres#65618

Open
karenbraganz wants to merge 15 commits into
apache:mainfrom
karenbraganz:seqo_defer
Open

Create deferrable SqlExecuteQueryOperator compatible with Postgres#65618
karenbraganz wants to merge 15 commits into
apache:mainfrom
karenbraganz:seqo_defer

Conversation

@karenbraganz

Copy link
Copy Markdown
Collaborator

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

This PR modifies the SqlExecuteQueryOperator to be deferrable. I have also created a SqlExecuteQueryTrigger and added asynchronous functions to the DbApiHook for use with the SqlExecuteQueryOperator when it is deferred.

I plan on making this compatible with several database types. This PR only adds compatibility with Postgres.


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

Comment thread providers/common/sql/src/airflow/providers/common/sql/operators/sql.py Outdated
@jscheffl
jscheffl requested a review from Srabasti May 28, 2026 20:35
@Srabasti

Srabasti commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for incorporating the review changes for import of conf @karenbraganz !!!

Seeing that the 3 failing tests are related to docker failures and files not being found as below.
image
https://github.com/apache/airflow/actions/runs/26853708158/job/79193370724?pr=65618
https://github.com/apache/airflow/actions/runs/26853708158/job/79193370736?pr=65618
https://github.com/apache/airflow/actions/runs/26853708158/job/79193370689?pr=65618

Can you try rebasing and pushing the changes to repo, so as to ensure any bug fixes for unrelated failures are resolved by another open source contributor, automatically?

I observed @jscheffl pushed no files however CI ran fine, from log above last on May 29th. Looks to me, possibly some change happened after that to cause these errors to start failing.

FYI - @potiuk I see same error in failed CI run below. Looks to me the same issue.
https://github.com/apache/airflow/actions/runs/26858010209/job/79206609169?pr=67929

@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jun 3, 2026
Comment thread providers/common/sql/src/airflow/providers/common/sql/operators/sql.py Outdated
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.

6 participants