You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "David Bowen (JIRA)" <ji...@apache.org> on 2007/04/07 00:25:32 UTC

[jira] Updated: (HADOOP-1222) Record IO C++ binding: buffer type not handled correctly

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

David Bowen updated HADOOP-1222:
--------------------------------

    Attachment: test.cc


Modified src/c++/librecordio/test.cc file that shows the bugs.



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