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

Function DictionaryDirectWriteSupported

cpp/src/parquet/column_writer.cc:1258–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1256namespace {
1257
1258bool DictionaryDirectWriteSupported(const ::arrow::Array& array) {
1259 DCHECK_EQ(array.type_id(), ::arrow::Type::DICTIONARY);
1260 const ::arrow::DictionaryType& dict_type =
1261 static_cast<const ::arrow::DictionaryType&>(*array.type());
1262 return ::arrow::is_base_binary_like(dict_type.value_type()->id());
1263}
1264
1265Status ConvertDictionaryToDense(const ::arrow::Array& array, MemoryPool* pool,
1266 std::shared_ptr<::arrow::Array>* out) {

Callers 1

WriteArrowDictionaryMethod · 0.85

Calls 5

is_base_binary_likeFunction · 0.85
type_idMethod · 0.45
typeMethod · 0.45
idMethod · 0.45
value_typeMethod · 0.45

Tested by

no test coverage detected