Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sqlite hook - insert and replace functions #17695

Merged
merged 4 commits into from
Aug 18, 2021

Conversation

subkanthi
Copy link
Contributor

closes: #17632

override _generate_insert_sql() in sqlite hook to use '?' instead of the standard '%' for replacing.
Added unit tests and example of insert/replace in example dag.

@boring-cyborg boring-cyborg bot added area:core-operators Operators, Sensors and hooks within Core Airflow area:providers kind:documentation labels Aug 18, 2021
airflow/hooks/dbapi.py Outdated Show resolved Hide resolved
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

small change to dbapi logs

@subkanthi subkanthi requested a review from potiuk August 18, 2021 19:06
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Aug 18, 2021
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@potiuk potiuk merged commit 9b2e593 into apache:main Aug 18, 2021
@potiuk
Copy link
Member

potiuk commented Aug 18, 2021

Thanks! @subkanthi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core-operators Operators, Sensors and hooks within Core Airflow area:providers full tests needed We need to run full set of tests for this PR to merge kind:documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SqliteHook invalid insert syntax
2 participants