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

Record IO C++ binding: buffer type not handled correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • record
    • None

    Description

      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>

      Attachments

        1. test.cc
          3 kB
          David Bowen

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: