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

[jira] [Assigned] (NIFI-10705) includePrimaryKeys has wrong value when statementType set to "User statement.type Attribute""

     [ https://issues.apache.org/jira/browse/NIFI-10705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Gough reassigned NIFI-10705:
-----------------------------------

    Assignee: Nathan Gough

> includePrimaryKeys has wrong value when statementType set to "User statement.type Attribute""
> ---------------------------------------------------------------------------------------------
>
>                 Key: NIFI-10705
>                 URL: https://issues.apache.org/jira/browse/NIFI-10705
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.18.0
>            Reporter: su heng
>            Assignee: Nathan Gough
>            Priority: Major
>         Attachments: ConvertJSONToSQL.patch
>
>
> {code:java}
> final boolean includePrimaryKeys = UPDATE_TYPE.equals(statementType) && updateKeys == null; {code}
> above code should do after evaluate statementType.
> {code:java}
> if (USE_ATTR_TYPE.equals(statementType)) {
>     statementType = flowFile.getAttribute(STATEMENT_TYPE_ATTRIBUTE);
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)