How to get Specific classes to expose BigDecimal fields

2014-11-08 Thread Fady
Hello, I am working on a project that aims at converting Mainframe data to Avro records (https://github.com/legsem/legstar.avro). Mainframe data often contains Decimal types. For these, I would like the corresponding Avro records to expose BigDecimal fields. Initially, I followed the recomm

Re: How to get Specific classes to expose BigDecimal fields

2014-11-11 Thread Fady
seems to me a better solution would be that the "java-class" trick be extended so that more complex conversions can occur between the avro type and the java type exposed by Specific classes. Right now, the java type must be castable from the avro type which is limiting. Anyway,

Re: Avro in OSGi environment

2016-01-24 Thread Fady
On 22/01/2016 17:15, Bernd Wiswedel wrote: Has anyone successfully run Avro in an OSGi environment? There was an issue fixed for release 1.7.6 [1] and I also see the 'correct' MANIFEST.MF in the build. This is what it looks like (from [2]): 29 Implementation-Title: Apache Avro 30 Implementa

Re: Avro schema properties contention on multithread read

2017-07-06 Thread fady
On 05.07.2017 21:53, Zoltan Farkas wrote: > The synchronization in JsonProperties is curently inconsistent (see > getObjectProps()) which makes current implementation @NotThreadSafe > > I think it would be probably best to remove synchronization from those > methods... and add @NotThreadSafe t

Re: AvroTypeException with "Expected" case : field name is not provided

2019-09-13 Thread fady
re the offending data is would also help. Fady

Re: New Committer: Ryan Skraba

2019-12-17 Thread fady
Excellent news. Ryan, you are doing a fantastic job. Congratulations! Fady

Re: AVRO definition question - record within a record?

2020-04-01 Thread fady
This code, using your schema: Schema schema = new Schema.Parser().parse(new File("src/test/data/nestedrecord.avsc")); JsonEncoder out = EncoderFactory.get().jsonEncoder(schema, System.out, true); DatumWriter writer = new GenericDatumWriter<>(schema); GenericRecord person = new GenericData.Record