Skip to content

Conversation

pvillard31
Copy link
Contributor

@pvillard31 pvillard31 commented Oct 5, 2025

Summary

NIFI-15057 - Add Record Path like helper methods for Record Transform Python processors

As a follow-up of NIFI-13672, I wanted to put together a processor that transforms records using a reader and writer and realised that we don't have an easy way to go through the dict representing the NiFi Record... So I'm adding helper methods that are a lightweight implementation of NiFi Record Path in order to make it easier to manipulate records using Python processors.

I didn't directly use the NiFi Record Path dependency as this would require a lot of back and forth between Java and Python in terms of mapping between the Java objects for using NiFi Record Path and we have on the Python side.

While not offering as rich features as the NiFi Record Path implementation, this provides a good start for basic scanning of the records which should cover most of the use cases.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using ./mvnw clean install -P contrib-check
    • JDK 21
    • JDK 25

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant