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

Function SerializeType

cpp/src/arrow/engine/substrait/serde.cc:332–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332Result<std::shared_ptr<Buffer>> SerializeType(
333 const DataType& type, ExtensionSet* ext_set,
334 const ConversionOptions& conversion_options) {
335 ARROW_ASSIGN_OR_RAISE(auto st_type,
336 ToProto(type, /*nullable=*/true, ext_set, conversion_options));
337 std::string serialized = st_type->SerializeAsString();
338 return Buffer::FromString(std::move(serialized));
339}
340
341Result<compute::Expression> DeserializeExpression(
342 const Buffer& buf, const ExtensionSet& ext_set,

Callers 2

ASSERT_OK_AND_ASSIGNFunction · 0.85
TESTFunction · 0.85

Calls 1

FromStringFunction · 0.85

Tested by 2

ASSERT_OK_AND_ASSIGNFunction · 0.68
TESTFunction · 0.68