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

UpdateRecord - cannot update arrays elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0, 1.4.0
    • 1.5.0
    • Extensions

    Description

      At the moment, if trying to use the update record to update the elements of an array it won't have any effect.

      Input:

      {
        "numbers" : [ 1, null, 4 ]
      }
      

      Parameters:

      Path Value Expected output
      /numbers[*] 8 "numbers" : [ 8, 8, 8 ]
      /numbers[1] 8 "numbers" : [ 1, 8, 4 ]
      /numbers[0..1] 8 "numbers" : [ 8, 8, 4 ]
      /numbers[0,2] 8 "numbers" : [ 8, null, 8 ]

      When elements of the array are records, it's possible to update fields of the record but not the record itself as-is.

      Also in the MultiArrayIndexPath implementation, index of array elements is not correctly provided. Because of that, wrong elements of the array could be updated.

      Attachments

        Issue Links

          Activity

            People

              pvillard Pierre Villard
              pvillard Pierre Villard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: