You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (Jira)" <ji...@apache.org> on 2020/11/20 20:20:00 UTC

[jira] [Commented] (NIFI-5151) Patch Nifi with Upsert functions for PutDatabaseRecord processor

    [ https://issues.apache.org/jira/browse/NIFI-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236422#comment-17236422 ] 

Matt Burgess commented on NIFI-5151:
------------------------------------

Since the DatabaseAdapter stuff was put into NIFI-6934, this patch is out of date and the case should probably be rewritten to cover Phoenix alone, or this one can be closed in favor of a new one for adding Upsert support to the PhoenixDatabaseAdapter. I have a branch https://github.com/mattyb149/nifi/tree/NIFI-5151 with untested code that should add such support, I'm leaving the link here in case someone wants to take it over as I don't know when I'd get to test and put up a PR from it.

> Patch Nifi with Upsert functions for PutDatabaseRecord processor
> ----------------------------------------------------------------
>
>                 Key: NIFI-5151
>                 URL: https://issues.apache.org/jira/browse/NIFI-5151
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.7.0
>            Reporter: Karl Amundsson
>            Priority: Major
>              Labels: Processor
>         Attachments: 0001-NIFI-5151-Adding-support-for-UPSERT-in-PutDatabaseRe.patch, 0001-NIFI-5151-Using-DatabaseAdapter-to-generate-INSERT-S.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Since Phoenix doesn't support the SQL statement INSERT you have to use a process like: ConvertAttributesToJSON->ConvertJSONToSQL in Insert mode->ReplaceText to replace "INSERT" with "UPSERT" -> PutSQL (See: [https://community.hortonworks.com/questions/40561/nifi-phoenix-processor.html)]
> With this patch you can choose to use UPSERT directly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)