Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Is it possible to change data type of an JSON data in nifi(From to string to int)?

Is it possible to change data type of an JSON data in nifi(From to string to int)?

New Contributor
 
1 REPLY 1

Re: Is it possible to change data type of an JSON data in nifi(From to string to int)?

You could use the ConvertRecord processor configured with a JsonTreeReader and JsonRecordSetWriter.

Have the reader use a schema where the field is defined as a string and have the writer use a schema where the field is defined as an int.