>> There are two show stoppers for me right now, AVRO-93 and AVRO-95. >> Now, my question is about the latter one, which is about mixing >> multiple types in one data file using reflection. I submitted a unit >> test for it that shows the bug, but I'm wondering if the way I'm using >> the API is as it is intended. > > No, it is not. An Avro data file is expected to contain instances that all > conform to a single schema. If you have multiple classes that you'd like to > store in a single file then you can use a union schema, e.g.: > > I have not tested this code, but it should work. > > It should also work to add new schemas to the list as you write the file, > before adding records of each type.
Cotcha, that's great. I hope to find some time later this week to write a unit test for it and attach to AVRO-95 to hopefully prove this is possible but should be done in a different manner. Cheers, Eelco
