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

Method DecodeType

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

Source from the content-addressed store, hash-verified

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