Skip to content

Make SQLExecuteQuery deferrable#61742

Closed
karenbraganz wants to merge 14 commits into
apache:mainfrom
karenbraganz:deferrable_seqo
Closed

Make SQLExecuteQuery deferrable#61742
karenbraganz wants to merge 14 commits into
apache:mainfrom
karenbraganz:deferrable_seqo

Conversation

@karenbraganz

@karenbraganz karenbraganz commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator

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

  • 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 or {issue_number}.significant.rst, in airflow-core/newsfragments.

This PR adds a deferrable option to the SQLExecuteQueryOperator. I have also created a SQLExecuteQueryTrigger and DbApiHookAsync for this.

Closes: #30451

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added stale Stale PRs per the .github/workflows/stale.yml policy file and removed stale Stale PRs per the .github/workflows/stale.yml policy file labels Mar 28, 2026
@kullanici0606

Copy link
Copy Markdown

We are also interested in having a deferable SQL operator, thanks a lot for this great work @karenbraganz . What is the plan for the next steps for this PR? I think this is a very important and nice addition to Airflow.

@karenbraganz

Copy link
Copy Markdown
Collaborator Author

Hi,

I am currently working on making this compatible with different database types:
Postgres
MySQL/MariaDB
SQLite
Oracle
MS SQL
Redshift
Snowflake

@kullanici0606 which database type are you planning to use this with? I can try to prioritize compatibility for that type during development.

@kullanici0606

Copy link
Copy Markdown

Hi @karenbraganz

That would be great, thanks a lot. We are using SQLExecuteQueryOperator with mostly Oracle and also with Postgresql.

@karenbraganz

Copy link
Copy Markdown
Collaborator Author

Providing an update: I have created a deferrable version of the SqlExecuteQueryOperator on this PR. I had to refactor a lot of code, so I ended up creating a new PR. I will close this PR.

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.

Add defer support for SQLExecuteQueryOperator

2 participants