| 9 | namespace function { |
| 10 | |
| 11 | static std::unique_ptr<FunctionBindData> bindFunc(const ScalarBindFuncInput& input) { |
| 12 | auto keyType = ListType::getChildType(input.arguments[0]->dataType).copy(); |
| 13 | auto valueType = ListType::getChildType(input.arguments[1]->dataType).copy(); |
| 14 | if (keyType.containsAny()) { |
| 15 | keyType = LogicalType::JSON(); |
| 16 | } |
| 17 | if (valueType.containsAny()) { |
| 18 | valueType = LogicalType::JSON(); |
| 19 | } |
| 20 | auto resultType = LogicalType::MAP(std::move(keyType), std::move(valueType)); |
| 21 | return FunctionBindData::getSimpleBindData(input.arguments, resultType); |
| 22 | } |
| 23 | |
| 24 | function_set MapCreationFunctions::getFunctionSet() { |
| 25 | auto execFunc = ScalarFunction::BinaryExecWithBindData<list_entry_t, list_entry_t, list_entry_t, |
nothing calls this directly
no test coverage detected