| 85 | } |
| 86 | |
| 87 | core::TypedExprPtr call( |
| 88 | const std::string& name, |
| 89 | const std::vector<core::TypedExprPtr>& args) { |
| 90 | std::vector<TypePtr> argTypes; |
| 91 | for (auto& arg : args) { |
| 92 | argTypes.push_back(arg->type()); |
| 93 | } |
| 94 | auto returnType = parse::resolveScalarFunctionType(name, argTypes); |
| 95 | return std::make_shared<core::CallTypedExpr>(returnType, args, name); |
| 96 | } |
| 97 | |
| 98 | core::TypedExprPtr bigint(int64_t value) { |
| 99 | return std::make_shared<core::ConstantTypedExpr>(BIGINT(), value); |
nothing calls this directly
no test coverage detected