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

Method DecodeType

cpp/src/arrow/engine/substrait/extension_set.cc:296–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296Result<ExtensionSet::TypeRecord> ExtensionSet::DecodeType(uint32_t anchor) const {
297 if (types_.find(anchor) == types_.end() || types_.at(anchor).id.empty()) {
298 return Status::Invalid("User defined type reference ", anchor,
299 " did not have a corresponding anchor in the extension set");
300 }
301 return types_.at(anchor);
302}
303
304Result<uint32_t> ExtensionSet::EncodeType(const DataType& type) {
305 if (auto rec = registry_->GetType(type)) {

Callers 1

ARROW_ASSIGN_OR_RAISEFunction · 0.80

Calls 4

InvalidFunction · 0.50
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected