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

Function SerializeSchema

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

Source from the content-addressed store, hash-verified

314}
315
316Result<std::shared_ptr<Buffer>> SerializeSchema(
317 const Schema& schema, ExtensionSet* ext_set,
318 const ConversionOptions& conversion_options) {
319 ARROW_ASSIGN_OR_RAISE(auto named_struct, ToProto(schema, ext_set, conversion_options));
320 std::string serialized = named_struct->SerializeAsString();
321 return Buffer::FromString(std::move(serialized));
322}
323
324Result<std::shared_ptr<DataType>> DeserializeType(
325 const Buffer& buf, const ExtensionSet& ext_set,

Callers 1

ASSERT_OK_AND_ASSIGNFunction · 0.70

Calls 1

FromStringFunction · 0.85

Tested by 1

ASSERT_OK_AND_ASSIGNFunction · 0.56