| 7 | namespace function { |
| 8 | |
| 9 | static std::unique_ptr<FunctionBindData> bindFunc(const ScalarBindFuncInput& input) { |
| 10 | logical_type_vec_t paramTypes; |
| 11 | for (auto& argument : input.arguments) { |
| 12 | if (argument->getDataType().getLogicalTypeID() == LogicalTypeID::ANY) { |
| 13 | paramTypes.push_back(LogicalType::STRING()); |
| 14 | } else { |
| 15 | paramTypes.push_back(argument->getDataType().copy()); |
| 16 | } |
| 17 | } |
| 18 | auto bindData = std::make_unique<FunctionBindData>(paramTypes[0].copy()); |
| 19 | bindData->paramTypes = std::move(paramTypes); |
| 20 | return bindData; |
| 21 | } |
| 22 | |
| 23 | static void execFunc(const std::vector<std::shared_ptr<common::ValueVector>>& params, |
| 24 | const std::vector<common::SelectionVector*>& paramSelVectors, common::ValueVector& result, |
nothing calls this directly
no test coverage detected