| 292 | } |
| 293 | |
| 294 | void AssertFixedSizeBinary(const ::arrow::Array& values, int type_length) { |
| 295 | if (!::arrow::is_fixed_size_binary(values.type_id())) { |
| 296 | throw ParquetException("Only FixedSizeBinaryArray and subclasses supported"); |
| 297 | } |
| 298 | if (checked_cast<const ::arrow::FixedSizeBinaryType&>(*values.type()).byte_width() != |
| 299 | type_length) { |
| 300 | throw ParquetException("Size mismatch: " + values.type()->ToString() + |
| 301 | " should have been " + std::to_string(type_length) + " wide"); |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | template <> |
| 306 | inline void PlainEncoder<FLBAType>::Put(const ::arrow::Array& values) { |
no test coverage detected