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

Function hasImplicitCastArray

src/function/vector_cast_functions.cpp:187–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187static bool hasImplicitCastArray(const LogicalType& srcType, const LogicalType& dstType) {
188 if (ArrayType::getNumElements(srcType) != ArrayType::getNumElements(dstType)) {
189 return false;
190 }
191 return CastFunction::hasImplicitCast(ArrayType::getChildType(srcType),
192 ArrayType::getChildType(dstType));
193}
194
195static bool hasImplicitCastArrayToList(const LogicalType& srcType, const LogicalType& dstType) {
196 return CastFunction::hasImplicitCast(ArrayType::getChildType(srcType),

Callers 1

hasImplicitCastMethod · 0.85

Calls 2

getNumElementsFunction · 0.85
getChildTypeFunction · 0.85

Tested by

no test coverage detected