You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2010/02/01 18:34:18 UTC
[jira] Updated: (AVRO-390) ResolvingDecoder does not handle default
values for records well
[ https://issues.apache.org/jira/browse/AVRO-390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiruvalluvan M. G. updated AVRO-390:
-------------------------------------
Status: Patch Available (was: Open)
> ResolvingDecoder does not handle default values for records well
> ----------------------------------------------------------------
>
> Key: AVRO-390
> URL: https://issues.apache.org/jira/browse/AVRO-390
> Project: Avro
> Issue Type: Bug
> Components: java
> Reporter: Thiruvalluvan M. G.
> Assignee: Thiruvalluvan M. G.
> Attachments: AVRO-390-test.patch, AVRO-390.patch
>
>
> Default values for simple fields work fine. But if a field is of type record and that field has default value, the values are inserted fine. But since the client has no knowledge that what is being read is a default value, it tries to get the field order of this record using readFieldOrder(). But the current implementation does not expect such a call. The accompanying test patch catches the problem. The actual patch fixes the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.