When printing out array
System.err.println(field.schema().toString());
["null",{"type":"array","items":{"type":"record","name":"TestClass","namespace":"com.xxxx.etl.avro.schema","fields":[{"name":"bidder_id","type":
etc.....
I am trying to list all the columns for the record and all I have is the field
from the array....
System.err.println("field is " + field.name());
field is rtb_bidders
I am trying:
for (Schema.Field innerFields : tt.getFields()) {System.err.println("Field is "
+ innerFields.name());}
But I am getting:
Exception in thread "main" org.apache.avro.AvroRuntimeException: Not a record:
How do I take the field from the array and traverse to get to the record field
names ??