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

Method AddSubstraitCallToArrow

cpp/src/arrow/engine/substrait/extension_set.cc:1247–1256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1245} // namespace
1246
1247Status 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
1258ExtensionIdRegistry* default_extension_id_registry() {
1259 static DefaultExtensionIdRegistry impl_;

Callers 3

TEST_PFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 3

GetValueArgsFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.70
callFunction · 0.50

Tested by 3

TEST_PFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36