Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
currently tech.allegro.schema.json2avro is used for json to avro converter but it is not formally supported by AVRO and may feature does not work in converter like byte data type.
Below code can be used instead of
def jsonToAvro( json:String, schemaStr:String) :GenericRecord= {
var input :InputStream= null;
var writer :DataFileWriter[GenericRecord] = null;
var encoder :Encoder= null;
var output :ByteArrayOutputStream= null;
try
finally {
try
catch {
case e:Exception =>
}
}
}
Attachments
Issue Links
- links to