Returns expected values in row range. We need this since some values are null.
| 1401 | // Returns expected values in row range. |
| 1402 | // We need this since some values are null. |
| 1403 | std::vector<std::string_view> expected_values(int start, int end) { |
| 1404 | std::vector<std::string_view> result; |
| 1405 | // Find out where in the values_ vector we start from. |
| 1406 | size_t values_index = 0; |
| 1407 | for (int i = 0; i < start; ++i) { |
| 1408 | if (def_levels_[i] != 0) { |
| 1409 | ++values_index; |
| 1410 | } |
| 1411 | } |
| 1412 | |
| 1413 | for (int i = start; i < end; ++i) { |
| 1414 | if (def_levels_[i] == 0) { |
| 1415 | if (!read_dense_for_nullable()) { |
| 1416 | result.emplace_back(); |
| 1417 | } |
| 1418 | continue; |
| 1419 | } |
| 1420 | result.emplace_back(reinterpret_cast<const char*>(values_[values_index].ptr), |
| 1421 | FLBA_type_length_); |
| 1422 | ++values_index; |
| 1423 | } |
| 1424 | return result; |
| 1425 | } |
| 1426 | |
| 1427 | void CheckReadValues(int start, int end) { |
| 1428 | auto binary_reader = dynamic_cast<BinaryRecordReader*>(record_reader_.get()); |
nothing calls this directly
no test coverage detected