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

Sameer Paranjpye updated HADOOP-1222:
-------------------------------------

    Component/s: record

> Record IO C++ binding: buffer type not handled correctly
> --------------------------------------------------------
>
>                 Key: HADOOP-1222
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1222
>             Project: Hadoop
>          Issue Type: Bug
>          Components: record
>            Reporter: David Bowen
>         Attachments: test.cc
>
>
>  
> I added this code to the test, which currently only tests 
> serialization/deserialization of an empty buffer.
>    std::string& b = r1.getBufferVal();
>     static char buffer[] = {0, 1, 2, 3, 4, 5};
>     for (int i = 0; i < 6; i++) {
>       b.push_back(buffer[i]);
>     }
> The csv test fails.  The generated file looks like this.
> T,102,4567,99344109427290,3.145000,1.523400,',# 0 1 2 3 4 5 0 1 2 3 4 
> 5,v{},m{}
> The xml test passes, but the data in the xml file is wrong:
> <value><string>000102030405000102030405000102030405</string></value>

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

Reply via email to