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:31:32 UTC

[jira] Created: (HADOOP-1223) Record IO C++ binding: non-empty vector of strings does not work

Record IO C++ binding: non-empty vector of strings does not work
----------------------------------------------------------------

                 Key: HADOOP-1223
                 URL: https://issues.apache.org/jira/browse/HADOOP-1223
             Project: Hadoop
          Issue Type: Bug
            Reporter: David Bowen
         Attachments: test.cc


It works in the binary case, but not in CSV or XML.

Here is the code to put some strings in the vector.

    std::vector<std::string>& v = r1.getVectorVal();
    v.push_back("hello");
    v.push_back("world");

In the CSV file, the strings appear twice, for some reason.  In the XML file they appear three times.



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


[jira] Updated: (HADOOP-1223) Record IO C++ binding: non-empty vector of strings does not work

Posted by "Sameer Paranjpye (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sameer Paranjpye updated HADOOP-1223:
-------------------------------------

    Component/s: record
    Description: 
It works in the binary case, but not in CSV or XML.

Here is the code to put some strings in the vector.

    std::vector<std::string>& v = r1.getVectorVal();
    v.push_back("hello");
    v.push_back("world");

In the CSV file, the strings appear twice, for some reason.  In the XML file they appear three times.



  was:

It works in the binary case, but not in CSV or XML.

Here is the code to put some strings in the vector.

    std::vector<std::string>& v = r1.getVectorVal();
    v.push_back("hello");
    v.push_back("world");

In the CSV file, the strings appear twice, for some reason.  In the XML file they appear three times.




> Record IO C++ binding: non-empty vector of strings does not work
> ----------------------------------------------------------------
>
>                 Key: HADOOP-1223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1223
>             Project: Hadoop
>          Issue Type: Bug
>          Components: record
>            Reporter: David Bowen
>         Attachments: test.cc
>
>
> It works in the binary case, but not in CSV or XML.
> Here is the code to put some strings in the vector.
>     std::vector<std::string>& v = r1.getVectorVal();
>     v.push_back("hello");
>     v.push_back("world");
> In the CSV file, the strings appear twice, for some reason.  In the XML file they appear three times.

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


[jira] Updated: (HADOOP-1223) Record IO C++ binding: non-empty vector of strings does not work

Posted by "David Bowen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bowen updated HADOOP-1223:
--------------------------------

    Attachment: test.cc


Version of test.cc that shows the bug(s).



> Record IO C++ binding: non-empty vector of strings does not work
> ----------------------------------------------------------------
>
>                 Key: HADOOP-1223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1223
>             Project: Hadoop
>          Issue Type: Bug
>            Reporter: David Bowen
>         Attachments: test.cc
>
>
> It works in the binary case, but not in CSV or XML.
> Here is the code to put some strings in the vector.
>     std::vector<std::string>& v = r1.getVectorVal();
>     v.push_back("hello");
>     v.push_back("world");
> In the CSV file, the strings appear twice, for some reason.  In the XML file they appear three times.

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