Support Questions

Find answers, ask questions, and share your expertise

NiFi 1.3+ Multiple Schemas

avatar
Master Guru

Can I have one schema for read and one for write on an UpdateRecord processor?

1 ACCEPTED SOLUTION

avatar
@Timothy Spann

You can change schema between read and write for UpdateRecord processor. You just need to use different schemas for your reader/writer and reference the new fields in your processor to set their values.

There's an example in additional info section of the doc : https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.4.0/org.apache...

In the given example you can see that field gender has been added

View solution in original post

2 REPLIES 2

avatar
Contributor

Yes, you can use one schema for read and a different one for write

avatar
@Timothy Spann

You can change schema between read and write for UpdateRecord processor. You just need to use different schemas for your reader/writer and reference the new fields in your processor to set their values.

There's an example in additional info section of the doc : https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.4.0/org.apache...

In the given example you can see that field gender has been added