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 "Harsh J (JIRA)" <ji...@apache.org> on 2011/07/16 21:38:00 UTC
[jira] [Resolved] (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 ]
Harsh J resolved HADOOP-1222.
-----------------------------
Resolution: Won't Fix
Resolving as Won't Fix, since the whole recordio component is now deprecated in favor of Avro (and technically ought to be removed in 0.22/0.23).
Please see https://issues.apache.org/jira/browse/HADOOP-6155
> Record IO C++ binding: buffer type not handled correctly
> --------------------------------------------------------
>
> Key: HADOOP-1222
> URL: https://issues.apache.org/jira/browse/HADOOP-1222
> Project: Hadoop Common
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira