Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8366

LookupRecord should allow for inner records

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Core Framework

    Description

      I would like LookupRecord to be able to allow multiple lookups per record.

      Imagine the following JSON:

      [{“key”:”foo”, “innerrecord”:[

      {“key”: “value1”}

      , {“key”:”value2”}, {“key”:”value3”}}]

      There is currently no way to be able to do lookups on the values of "innerrecord"

      to be able to give:

      [{“key”:”foo”, “innerrecord”:[

      {“key”: “value1”,"enhanced":1}

      , {“key”:”value2”}, {“key”:”value3”,"enhanced":3}}]

      I'm not certain of what the spec for the lookup key would look like, maybe something like

      /innermost[i]/key ?

      and then the result would go into

      /inntermost[i]/enhanced? 

       

      Thats just an implementation thought though

      Attachments

        Activity

          People

            Unassigned Unassigned
            goofwithz3 Geoff Greene
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: