avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiruvalluvan M. G. (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AVRO-390) ResolvingDecoder does not handle default values for records well
Date Mon, 01 Feb 2010 17:34:18 GMT

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

View raw message