You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Philip Gladstone (JIRA)" <ji...@apache.org> on 2012/12/07 22:25:20 UTC

[jira] [Updated] (AVRO-1217) Calling set_meta on DataFileWriter does not do anything (in python)

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

Philip Gladstone updated AVRO-1217:
-----------------------------------

    Release Note: Calls to DataFileWriter set_meta method will now add metadata to the written file if the call is before any datum is appended to the file.
          Status: Patch Available  (was: Open)

The attached patch fixes the problem and adds a test case.
                
> Calling set_meta on DataFileWriter does not do anything (in python)
> -------------------------------------------------------------------
>
>                 Key: AVRO-1217
>                 URL: https://issues.apache.org/jira/browse/AVRO-1217
>             Project: Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.7.2
>         Environment: Ubuntu 12.04
>            Reporter: Philip Gladstone
>              Labels: patch
>             Fix For: 1.7.4
>
>
> In the code:
>     writer = open(FILENAME, 'wb')
>     with datafile.DataFileWriter(writer, datum_writer, schema_object) as dfw:
>       dfw.set_meta('test.string', 'foo')
> the call to set_meta does not actually cause the metadata to be written to the file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira