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

Function DictionaryDirectWriteSupported

cpp/src/parquet/column_writer.cc:1257–1262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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