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

Function SerializeRelation

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

Source from the content-addressed store, hash-verified

95}
96
97Result<std::shared_ptr<Buffer>> SerializeRelation(
98 const acero::Declaration& declaration, ExtensionSet* ext_set,
99 const ConversionOptions& conversion_options) {
100 ARROW_ASSIGN_OR_RAISE(auto relation, ToProto(declaration, ext_set, conversion_options));
101 std::string serialized = relation->SerializeAsString();
102 return Buffer::FromString(std::move(serialized));
103}
104
105Result<acero::Declaration> DeserializeRelation(
106 const Buffer& buf, const ExtensionSet& ext_set,

Callers

nothing calls this directly

Calls 1

FromStringFunction · 0.85

Tested by

no test coverage detected