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

Function getChildType

src/function/array/array_functions.cpp:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static LogicalType getChildType(const LogicalType& type) {
90 switch (type.getLogicalTypeID()) {
91 case LogicalTypeID::ARRAY:
92 return ArrayType::getChildType(type).copy();
93 case LogicalTypeID::LIST:
94 return ListType::getChildType(type).copy();
95 // LCOV_EXCL_START
96 default:
97 throw BinderException(std::format(
98 "Cannot retrieve child type of type {}. LIST or ARRAY is expected.", type.toString()));
99 // LCOV_EXCL_STOP
100 }
101}
102
103static void validateChildType(const LogicalType& type, const std::string& functionName) {
104 switch (type.getLogicalTypeID()) {

Callers 15

TESTFunction · 0.85
hasImplicitCastListFunction · 0.85
hasImplicitCastArrayFunction · 0.85
bindFuncFunction · 0.85
bindFuncFunction · 0.85
bindFuncFunction · 0.85
bindFuncFunction · 0.85
bindFuncFunction · 0.85
bindFuncFunction · 0.85
bindFuncFunction · 0.85

Calls 3

getLogicalTypeIDMethod · 0.80
copyMethod · 0.45
toStringMethod · 0.45

Tested by 1

TESTFunction · 0.68