You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Sharad Agarwal (JIRA)" <ji...@apache.org> on 2009/04/27 12:39:30 UTC
[jira] Commented: (AVRO-22) Kill anonymous records or fix
GenericDatumReader
[ https://issues.apache.org/jira/browse/AVRO-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703057#action_12703057 ]
Sharad Agarwal commented on AVRO-22:
------------------------------------
bq. But again, let's just get rid of null names.
+1 I think it creates more pain than benefit.
> Kill anonymous records or fix GenericDatumReader
> ------------------------------------------------
>
> Key: AVRO-22
> URL: https://issues.apache.org/jira/browse/AVRO-22
> Project: Avro
> Issue Type: Bug
> Components: spec
> Reporter: Raymie Stata
>
> Anonymous record names are a pain, can we get rid of them?
> If not, I think I noticed a bug in GenericDatumReader.resolveExpected:
> {noformat}
> if (branch.getType() == Type.RECORD) {
> String name = branch.getName();
> if (name == null || name.equals(actual.getName()))
> return branch;
> } else
> return branch;
> {noformat}
> This doesn't seem to require that _both_ are null to match: if the name of {{branch}} is null and the name {{actual}} is not, then we get a match, which I think is a bug.
> But again, let's just get rid of null names.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.