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

Add map Record Standalone Function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.25.0, 2.0.0-M2
    • Core Framework
    • None

    Description

      Adding a function that can be used to create a map of Strings.

      For example, if we have the following record:

       

      { 
          "firstName": "John",
          "lastName": "Snow"
      }

       

      We could use the UpdateRecord processor with

      /fullName => map("firstName", /firstName, "lastName", /lastName)

      And that would give us something like:

      {
          "firstName": "John",
          "lastName": "Snow",
          "fullName": {"firstName": "John", "lastName": "Snow"}
      }

      This function requires an even number of arguments and the record paths must represent simple field values.

      Attachments

        Issue Links

          Activity

            People

              pvillard Pierre Villard
              pvillard Pierre Villard
              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 - 50m
                  50m