| 245 | } |
| 246 | |
| 247 | static 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 | |
| 256 | bool CastFunction::hasImplicitCast(const LogicalType& srcType, const LogicalType& dstType) { |
| 257 | if (LogicalTypeUtils::isNested(srcType) && LogicalTypeUtils::isNested(dstType)) { |
no test coverage detected