Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1223

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: record
    • Labels:
      None

      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.

        Attachments

        1. test.cc
          3 kB
          David Bowen

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dbowen David Bowen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: