MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / validateChildType

Function validateChildType

src/function/array/array_functions.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static void validateChildType(const LogicalType& type, const std::string& functionName) {
104 switch (type.getLogicalTypeID()) {
105 case LogicalTypeID::DOUBLE:
106 case LogicalTypeID::FLOAT:
107 return;
108 default:
109 throw BinderException(
110 std::format("{} requires argument type to be FLOAT[] or DOUBLE[].", functionName));
111 }
112}
113
114static LogicalType validateArrayFunctionParameters(const LogicalType& leftType,
115 const LogicalType& rightType, const std::string& functionName) {

Callers 1

Calls 1

getLogicalTypeIDMethod · 0.80

Tested by

no test coverage detected