| 794 | |
| 795 | template <typename DType> |
| 796 | void AssertCanPutDictionary(DictEncoderImpl<DType>* encoder, const ::arrow::Array& dict) { |
| 797 | if (dict.null_count() > 0) { |
| 798 | throw ParquetException("Inserted dictionary cannot contain nulls"); |
| 799 | } |
| 800 | |
| 801 | if (encoder->num_entries() > 0) { |
| 802 | throw ParquetException("Can only call PutDictionary on an empty DictEncoder"); |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | template <typename DType> |
| 807 | void DictEncoderImpl<DType>::PutDictionary(const ::arrow::Array& values) { |
no test coverage detected