| 1245 | } // namespace |
| 1246 | |
| 1247 | Status ExtensionIdRegistryImpl::AddSubstraitCallToArrow(Id substrait_function_id, |
| 1248 | std::string arrow_function_name) { |
| 1249 | return AddSubstraitCallToArrow( |
| 1250 | substrait_function_id, |
| 1251 | [arrow_function_name](const SubstraitCall& call) -> Result<compute::Expression> { |
| 1252 | ARROW_ASSIGN_OR_RAISE(std::vector<compute::Expression> value_args, |
| 1253 | GetValueArgs(call, 0)); |
| 1254 | return compute::call(arrow_function_name, std::move(value_args)); |
| 1255 | }); |
| 1256 | } |
| 1257 | |
| 1258 | ExtensionIdRegistry* default_extension_id_registry() { |
| 1259 | static DefaultExtensionIdRegistry impl_; |