Throws exception if number_decoded does not match expected.
| 83 | |
| 84 | // Throws exception if number_decoded does not match expected. |
| 85 | inline void CheckNumberDecoded(int64_t number_decoded, int64_t expected) { |
| 86 | if (ARROW_PREDICT_FALSE(number_decoded != expected)) { |
| 87 | ParquetException::EofException("Decoded values " + std::to_string(number_decoded) + |
| 88 | " does not match expected " + |
| 89 | std::to_string(expected)); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | constexpr std::string_view kErrorRepDefLevelNotMatchesNumValues = |
| 94 | "Number of decoded rep / def levels do not match num_values in page header"; |
no test coverage detected