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

Function MakeBinary

cpp/src/arrow/type.cc:382–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380// Utilities for Field::MergeWith
381
382std::shared_ptr<DataType> MakeBinary(const DataType& type) {
383 switch (type.id()) {
384 case Type::BINARY:
385 case Type::STRING:
386 return binary();
387 case Type::LARGE_BINARY:
388 case Type::LARGE_STRING:
389 return large_binary();
390 default:
391 Unreachable("Hit an unknown type");
392 }
393 return nullptr;
394}
395
396Result<std::shared_ptr<DataType>> WidenDecimals(
397 const std::shared_ptr<DataType>& promoted_type,

Callers 1

MaybeMergeBinaryTypesFunction · 0.85

Calls 2

UnreachableFunction · 0.85
idMethod · 0.45

Tested by

no test coverage detected