Need a sample JSON input file for InferAvroSchema

2018-08-13 Thread Kuhfahl, Bob
Trying to develop a sample input file of json data to feed into InferAvroSchema so I can feed that into PutDatabaseRecord. Need a hello world example ☺ But, to get started, I’d be happy to get InferAvroSchema working. I’m “trial and error”-ing the input file hoping to get lucky, but.. No log m

Re: Need a sample JSON input file for InferAvroSchema

2018-08-13 Thread Matt Burgess
Bob, InferAvroSchema can infer types like boolean, integer, long, float, double, and I believe for JSON can correctly descend into arrays and nested maps/structs/objects. Here is an example record from NiFi provenance data that has most of those covered (except bool and float/double, but you can a

Re: Need a sample JSON input file for InferAvroSchema -> PutDatabaseRecord

2018-08-14 Thread Kuhfahl, Bob
quot; }, { "name": "res_prod", "type": "string", "doc": "Type inferred from '\"DJ\"'" }, { "name": "review_date", &qu

Re: Need a sample JSON input file for InferAvroSchema -> PutDatabaseRecord

2018-08-14 Thread Matt Burgess
t_chg", > >"type": "string", > > "doc": "Type inferred from '\"20190101\"'" > > }, { > >"name": "producer_userid", > >