Returns expected values in row range. We need this since some values are null.
| 1433 | // Returns expected values in row range. |
| 1434 | // We need this since some values are null. |
| 1435 | std::vector<std::string_view> expected_values(int start, int end) { |
| 1436 | std::vector<std::string_view> result; |
| 1437 | // Find out where in the values_ vector we start from. |
| 1438 | size_t values_index = 0; |
| 1439 | for (int i = 0; i < start; ++i) { |
| 1440 | if (def_levels_[i] != 0) { |
| 1441 | ++values_index; |
| 1442 | } |
| 1443 | } |
| 1444 | |
| 1445 | for (int i = start; i < end; ++i) { |
| 1446 | if (def_levels_[i] == 0) { |
| 1447 | if (!read_dense_for_nullable()) { |
| 1448 | result.emplace_back(); |
| 1449 | } |
| 1450 | continue; |
| 1451 | } |
| 1452 | result.emplace_back(reinterpret_cast<const char*>(values_[values_index].ptr), |
| 1453 | FLBA_type_length_); |
| 1454 | ++values_index; |
| 1455 | } |
| 1456 | return result; |
| 1457 | } |
| 1458 | |
| 1459 | void CheckReadValues(int start, int end) { |
| 1460 | auto binary_reader = dynamic_cast<BinaryRecordReader*>(record_reader_.get()); |
nothing calls this directly
no test coverage detected