avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-675) Bytes and fixed setters don't update datum size
Date Tue, 05 Oct 2010 19:28:34 GMT

    [ https://issues.apache.org/jira/browse/AVRO-675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918127#action_12918127
] 

Doug Cutting commented on AVRO-675:
-----------------------------------

Matt/Bruce: can one of you please review this?  Thanks!

> Bytes and fixed setters don't update datum size
> -----------------------------------------------
>
>                 Key: AVRO-675
>                 URL: https://issues.apache.org/jira/browse/AVRO-675
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.4.0
>            Reporter: Douglas Creager
>         Attachments: avro-675.patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> The setter methods for bytes and fixed datum instances don't update the size field. 
So, for instance, if you create a datum:
> {{avro_datum_t  datum = avro_wrapbytes(NULL, 0);}}
> Then later you update that datum to point to a different buffer:
> {{avro_wrapbytes_set(datum, "hello", 5);}}
> If you write that datum out to a file, you'll get a zero-length value in the output,
since the size pointer didn't get updated from 0 to 5.

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


Mime
View raw message