Drop the validity buffer from each chunk. Used when reading a non-nullable field.
| 353 | /// |
| 354 | /// Used when reading a non-nullable field. |
| 355 | void ReconstructChunksWithoutNulls(::arrow::ArrayVector* chunks) { |
| 356 | for (size_t i = 0; i < chunks->size(); i++) { |
| 357 | if ((*chunks)[i]->data()->buffers[0]) { |
| 358 | std::shared_ptr<::arrow::ArrayData> data = (*chunks)[i]->data(); |
| 359 | data->null_count = 0; |
| 360 | data->buffers[0] = nullptr; |
| 361 | (*chunks)[i] = MakeArray(data); |
| 362 | } |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | template <typename ArrowType, typename ParquetType> |
| 367 | void AttachStatistics(::arrow::ArrayData* data, |
no test coverage detected