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

Function hasImplicitCastMap

src/function/vector_cast_functions.cpp:247–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247static bool hasImplicitCastMap(const LogicalType& srcType, const LogicalType& dstType) {
248 const auto& srcKeyType = MapType::getKeyType(srcType);
249 const auto& srcValueType = MapType::getValueType(srcType);
250 const auto& dstKeyType = MapType::getKeyType(dstType);
251 const auto& dstValueType = MapType::getValueType(dstType);
252 return CastFunction::hasImplicitCast(srcKeyType, dstKeyType) &&
253 CastFunction::hasImplicitCast(srcValueType, dstValueType);
254}
255
256bool CastFunction::hasImplicitCast(const LogicalType& srcType, const LogicalType& dstType) {
257 if (LogicalTypeUtils::isNested(srcType) && LogicalTypeUtils::isNested(dstType)) {

Callers 1

hasImplicitCastMethod · 0.85

Calls 1

getKeyTypeFunction · 0.85

Tested by

no test coverage detected