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

[jira] [Updated] (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 ]

David Handermann updated NIFI-10705:
------------------------------------
    Priority: Minor  (was: Major)

> 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: Minor
>         Attachments: ConvertJSONToSQL.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {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)