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

Method AddScalarFunction

cpp/src/arrow/compute/exec_test.cc:1090–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088 }
1089
1090 void AddScalarFunction() {
1091 auto registry = GetFunctionRegistry();
1092
1093 auto func = std::make_shared<ScalarFunction>("test_scalar_add_int32", Arity::Binary(),
1094 /*doc=*/FunctionDoc::Empty());
1095 ASSERT_OK(func->AddKernel({int32(), int32()}, int32(), ExecAddInt32));
1096 ASSERT_OK(registry->AddFunction(func));
1097 }
1098};
1099
1100bool TestCallScalarFunction::initialized_ = false;

Callers

nothing calls this directly

Calls 5

GetFunctionRegistryFunction · 0.85
BinaryFunction · 0.70
EmptyClass · 0.50
AddKernelMethod · 0.45
AddFunctionMethod · 0.45

Tested by

no test coverage detected