[
https://issues.apache.org/jira/browse/AVRO-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744624#action_12744624
]
Eelco Hillenius commented on AVRO-95:
-------------------------------------
Almost works. I've attached a patch with a unit test that has two methods. The
first one tests that writing multiple types to one file using a union works
when the types are know upfront. This test passes. The second one tests writing
multiple types to one file, but adding a second type later when instances of
the first type are already written. Writing completes without exceptions, but
reading in from the file after that fails. Not sure whether the problem is that
the file layout is corrupt or whether there is a problem with reading.
> mixing multiple types in one data file using reflection is not supported
> ------------------------------------------------------------------------
>
> Key: AVRO-95
> URL: https://issues.apache.org/jira/browse/AVRO-95
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.0.0
> Reporter: Eelco Hillenius
> Assignee: Doug Cutting
> Fix For: 1.0.1
>
> Attachments: AVRO-95.patch, AVRO-95.patch, AVRO-95.patch,
> AVRO-95.patch, AVRO-95.patch
>
>
> My use case is that I have a bunch of different kind of events (in a
> hierarchy actually, which right now isn't supported either, see AVRO-93),
> that I would like to write out to log files using Avro. Unfortunately,
> writing more than one type via reflection seems to be broken currently. I
> think I can tell from the code and the resulting data file that this should
> be supported, but it seems that there are a few issues with the
> implementation right now.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.