You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/09/02 18:01:02 UTC
[jira] [Commented] (AIRFLOW-2638) dbapi_hook: insert_rows: support
replace into
[ https://issues.apache.org/jira/browse/AIRFLOW-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601390#comment-16601390 ]
Apache Spark commented on AIRFLOW-2638:
---------------------------------------
User 'flokli' has created a pull request for this issue:
https://github.com/apache/incubator-airflow/pull/3517
> dbapi_hook: insert_rows: support replace into
> ---------------------------------------------
>
> Key: AIRFLOW-2638
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2638
> Project: Apache Airflow
> Issue Type: New Feature
> Components: db
> Reporter: Florian Klink
> Priority: Minor
> Fix For: 1.10.0, 2.0.0
>
>
> Sometimes, you want to use dbapi_hook's insert_rows method, but with "REPLACE INTO", as some values might already exist (while iterating over the same data). This PR adds a `replace` optional parameter, that changes the query to "REPLACE INTO" instead of "INSERT INTO".
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)