You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2009/08/17 23:57:14 UTC
[jira] Commented: (AVRO-95) mixing multiple types in one data file
using reflection is not supported
[ https://issues.apache.org/jira/browse/AVRO-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744228#action_12744228 ]
Doug Cutting commented on AVRO-95:
----------------------------------
The recommended way to handle this would be to use a union of the records you intend to append to the file. Then use a single DatumWriter/DataFileWriter to write all records.
> 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, 1.0.1
> Reporter: Eelco Hillenius
> Fix For: 1.0.1
>
> Attachments: 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.