I wrote one Avro schema in which some of the fields ** need to be ** of type String
but Avro has generated those fields of type CharSequence
.
I am not able to find any way to tell Avro to make those fields of type String
.
I tried to use
"fields": [
{
"name":"startTime",
"type":"string",
"avro.java.stringImpl":"String"
},
{
"name":"endTime",
"type":"string",
"avro.java.string":"String"
}
]
but for both the fields Avro is generating fields of type CharSequence
.
Is there any other way to make those fields of type String
?