| 81 | } |
| 82 | |
| 83 | Result<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 | |
| 97 | Result<std::shared_ptr<Buffer>> SerializeRelation( |
| 98 | const acero::Declaration& declaration, ExtensionSet* ext_set, |
no test coverage detected