MCPcopy Create free account
hub / github.com/bytedance/bolt / getExpressions

Function getExpressions

bolt/functions/remote/server/RemoteFunctionService.cpp:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66} // namespace
67
68std::vector<core::TypedExprPtr> getExpressions(
69 const RowTypePtr& inputType,
70 const TypePtr& returnType,
71 const std::string& functionName) {
72 std::vector<core::TypedExprPtr> inputs;
73 for (size_t i = 0; i < inputType->size(); ++i) {
74 inputs.push_back(std::make_shared<core::FieldAccessTypedExpr>(
75 inputType->childAt(i), inputType->nameOf(i)));
76 }
77
78 return {std::make_shared<core::CallTypedExpr>(
79 returnType, std::move(inputs), functionName)};
80}
81
82void RemoteFunctionServiceHandler::invokeFunction(
83 remote::RemoteFunctionResponse& response,

Callers 1

invokeFunctionMethod · 0.85

Calls 4

childAtMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
nameOfMethod · 0.45

Tested by

no test coverage detected