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
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
quot;
}, {
"name": "res_prod",
"type": "string",
"doc": "Type inferred from '\"DJ\"'"
}, {
"name": "review_date",
&qu
t_chg",
>
>"type": "string",
>
> "doc": "Type inferred from '\"20190101\"'"
>
> }, {
>
>"name": "producer_userid",
>
>