Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1475

[C++] ConvertColumnReader.TestConvertNumericToStringVariant fails when compiled with unsigned char

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.1
    • 2.0.0, 1.9.2
    • C++
    • None

    Description

      [----------] 6 tests from ConvertColumnReader
      [ RUN ] ConvertColumnReader.betweenNumericWithoutOverflows
      [ OK ] ConvertColumnReader.betweenNumericWithoutOverflows (7 ms)
      [ RUN ] ConvertColumnReader.betweenNumricOverflows
      [ OK ] ConvertColumnReader.betweenNumricOverflows (0 ms)
      [ RUN ] ConvertColumnReader.booleanToString
      [ OK ] ConvertColumnReader.booleanToString (0 ms)
      [ RUN ] ConvertColumnReader.TestConvertNumericToStringVariant
      /root/orc/c++/test/TestConvertColumnReader.cc:339: Failure
      Expected equality of these values:
      expected[1]
      Which is: "254"
      std::string(readC1.data[i], static_cast<size_t>(readC1.length[i]))
      Which is: "-2"
      2
      /root/orc/c++/test/TestConvertColumnReader.cc:339: Failure
      Expected equality of these values:
      expected[1]
      Which is: "252"
      std::string(readC1.data[i], static_cast<size_t>(readC1.length[i]))
      Which is: "-4"
      4

      Attachments

        Activity

          People

            ffacs Yuanping Wu
            wgtmac Gang Wu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: