Jacek Trocinski created NIFI-10171:
--------------------------------------

             Summary: LookupRecord Fails when No Match
                 Key: NIFI-10171
                 URL: https://issues.apache.org/jira/browse/NIFI-10171
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.16.2
            Reporter: Jacek Trocinski


When there is no match for a key in the DatabaseRecordLookupService it returns 
an error:

!https://community.cloudera.com/t5/image/serverpage/image-id/34689i23235965854C2D7D/image-size/medium?v=v2&px=400!

The lookup processor config:

!https://community.cloudera.com/t5/image/serverpage/image-id/34690i03D3A63AD902480E/image-size/medium?v=v2&px=400!

The input JSON has the following structure:
[
  \{
    "id": 1,
    "name": "Bitcoin",
    "symbol": "BTC"
  },
  \{
    "id": 2,
    "name": "Apecoin",
    "symbol": "Ape"
  }
]
 

I expected the attribute value is updated for a lookup match (e.g., if there is 
a lookup match for symbol BTC then replace BTC with the lookup value) and when 
there is no lookup match then don't update the attribute (e.g., there is no 
lookup match for the APE symbol which should leave the symbol as APE).



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to