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

Allow UpdateRecord to replace root fields with RecordPath unescapeJson output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.18.0
    • 2.0.0-M1, 1.22.0
    • None
    • None

    Description

      UpdateRecord currently cannot replace the root of a Record with the output of the unescapeJson RecordPath function.

      While a child Record within a Record can be "moved" to the top-level, e.g. / => /child, this doesn't work if the RecordPath function is used, e.g. / => unescapeJson(/stringified_child).

      Rather than replacing the Record content with the output of the unescapeJson function, a root field is added to the input Record (i.e. with the name root)) and the de-stringified content of the selected field(s) serialised in Map format.

      Attachments

        Issue Links

          Activity

            People

              Chris S Chris Sampson
              Chris S Chris Sampson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m