MCPcopy Create free account
hub / github.com/apache/arrow / AssertCanPutDictionary

Function AssertCanPutDictionary

cpp/src/parquet/encoder.cc:796–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794
795template <typename DType>
796void 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
806template <typename DType>
807void DictEncoderImpl<DType>::PutDictionary(const ::arrow::Array& values) {

Callers 1

PutDictionaryMethod · 0.85

Calls 3

ParquetExceptionFunction · 0.85
num_entriesMethod · 0.80
null_countMethod · 0.45

Tested by

no test coverage detected