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

ScriptedTransformRecord doesn't update record with inferred schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.12.0
    • 1.12.0
    • Core Framework
    • None
    • Linux,

    Description

      Using ScriptedTransformRecord with JsonTreeReader.  The Record schema is inferred from the json.  If I update the record in code, e.g.

      record.setValue('newfieldname', 'newfieldvalue')

      The JsonRecordSetWriter apparently doesn't update the schema and doesn't write the new field.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              tjfleming Timothy Fleming
              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 - 0.5h
                  0.5h