| 66 | } // namespace |
| 67 | |
| 68 | std::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 | |
| 82 | void RemoteFunctionServiceHandler::invokeFunction( |
| 83 | remote::RemoteFunctionResponse& response, |
no test coverage detected