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/07/20 23:04:14 UTC

[jira] Resolved: (AVRO-79) The spec does not say how to encode default values for "fixed"

     [ https://issues.apache.org/jira/browse/AVRO-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting resolved AVRO-79.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.1

I just committed this.  Thanks, Thiru!

> The spec does not say how to encode default values for "fixed"
> --------------------------------------------------------------
>
>                 Key: AVRO-79
>                 URL: https://issues.apache.org/jira/browse/AVRO-79
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Thiruvalluvan M. G.
>            Assignee: Thiruvalluvan M. G.
>             Fix For: 1.0.1
>
>         Attachments: AVRO-79.patch
>
>
> The spec is silent on how to encode default values for "fixed" type in schema. The code in GenericDatumReader suggests that that it should be encoded as a JSON string with Java's platform default charset. A more appropriate way is to encode "fixed" in the same way as binary, that is a string with ISO-8859-1.
> I'll submit a patch for this soon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.