| 43 | } |
| 44 | |
| 45 | void CheckColumnBounds(int column_index, size_t max_columns) { |
| 46 | if (ARROW_PREDICT_FALSE(column_index < 0 || |
| 47 | static_cast<size_t>(column_index) >= max_columns)) { |
| 48 | std::stringstream ss; |
| 49 | ss << "Invalid Column Index: " << column_index << " Num columns: " << max_columns; |
| 50 | throw ParquetException(ss.str()); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | } // namespace |
| 55 |
no test coverage detected