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 2010/02/01 19:36:19 UTC

[jira] Commented: (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:comment-tabpanel&focusedCommentId=12828212#action_12828212 ] 

Doug Cutting commented on AVRO-390:
-----------------------------------

+1 Looks good.  Thanks!

> 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.