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

Function SerializeExpressions

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

Source from the content-addressed store, hash-verified

81}
82
83Result<std::shared_ptr<Buffer>> SerializeExpressions(
84 const BoundExpressions& bound_expressions,
85 const ConversionOptions& conversion_options, ExtensionSet* ext_set) {
86 ExtensionSet throwaway_ext_set;
87 if (ext_set == nullptr) {
88 ext_set = &throwaway_ext_set;
89 }
90 ARROW_ASSIGN_OR_RAISE(
91 std::unique_ptr<substrait::ExtendedExpression> extended_expression,
92 ToProto(bound_expressions, ext_set, conversion_options));
93 std::string serialized = extended_expression->SerializeAsString();
94 return Buffer::FromString(std::move(serialized));
95}
96
97Result<std::shared_ptr<Buffer>> SerializeRelation(
98 const acero::Declaration& declaration, ExtensionSet* ext_set,

Callers 1

serde_test.ccFile · 0.85

Calls 3

FromStringFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.70
ToProtoFunction · 0.70

Tested by

no test coverage detected