| 103 | } |
| 104 | |
| 105 | Result<acero::Declaration> DeserializeRelation( |
| 106 | const Buffer& buf, const ExtensionSet& ext_set, |
| 107 | const ConversionOptions& conversion_options) { |
| 108 | ARROW_ASSIGN_OR_RAISE(auto rel, ParseFromBuffer<substrait::Rel>(buf)); |
| 109 | ARROW_ASSIGN_OR_RAISE(auto decl_info, FromProto(rel, ext_set, conversion_options)); |
| 110 | return std::move(decl_info.declaration); |
| 111 | } |
| 112 | |
| 113 | using DeclarationFactory = std::function<Result<acero::Declaration>( |
| 114 | acero::Declaration, std::vector<std::string> names)>; |