Hi,
In that case you will need a field called 'DataModel' whose type is
'DataModel':
{
"type" : "record",
"name" : "ParentType",
"fields" : [
"name" : "DataModel",
"type" : {
"type" : "record",
"name" : "DataModel",
"fields" : [
{ "name" : "TMS_ID", "type" : "str
Thank you, Elliot. This worked.
If my json needs to include "DataModel":, then what changes do I need to
make in my avsc file?
Thanks,
Manish
On Wed, Aug 9, 2017 at 1:46 PM, Elliot West wrote:
> Try:
>
> {
> "TMS_ID" : "asdf"
> }
>
> On Wed, 9 Aug 2017 at 19:22, Manish Mehndiratta
> wrote:
>
Try:
{
"TMS_ID" : "asdf"
}
On Wed, 9 Aug 2017 at 19:22, Manish Mehndiratta
wrote:
> Hi Team,
>
> I stripped out my avro schema file and json file to only one element and
> yet it continues to give me the same error.
>
> Exception in thread "main" *org.apache.avro.AvroTypeException: Expected
>
Hi Team,
I stripped out my avro schema file and json file to only one element and
yet it continues to give me the same error.
Exception in thread "main" *org.apache.avro.AvroTypeException: Expected
field name not found*: TMS_ID
*--- avsc file ---*
{
"type" : "record",
"name" : "DataModel",