Member since
12-11-2017
3
Posts
0
Kudos Received
0
Solutions
03-01-2018
03:01 PM
Sure, schema is something similar to: "fields": [
{ "name": "sample", "type": "string"}] I understand now that the type of field will define the output type of our writer. A new question came out, is it possible to have the record invalidated since the sample came as 123 int instead of "123" string? We would like to avoid the type coercion provided by JsonTreeReader: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-record-serialization-services-nar/1.5.0/org.apache.nifi.json.JsonTreeReader/additionalDetails.html
... View more
02-28-2018
09:03 AM
Hello community, We are experiencing an invalid scenario in our implementation. After receiving an input JSON with integer values from ListenHTTP processor, the values are sent to a Kafka processor which uses JsonTreeReader 1.4.0 as record reader and JsonRecordSetWriter 1.4.0 as record writer. After this processing, integer values from JSON are converted to String. Is this the correct behavior? Is there a way to keep the original format? input: { "sample": 123 } output: { "sample": "123" } Thanks, Tiago
... View more
Labels:
12-11-2017
12:22 AM
Hello guys, We are working on an ExecuteScript component which will basically receive a list of JSON and convert it to CQL query. Which script language would have better performance in this situation? At this moment we are using Python, but I could see that Clojure and Javascript have better performance in this NiFi processor (according to community). Could anyone help us here? Thanks, Tiago
... View more
Labels: