| 1507 | } |
| 1508 | |
| 1509 | static bool tryCombineArrayTypes(const LogicalType& left, const LogicalType& right, |
| 1510 | LogicalType& result) { |
| 1511 | if (ArrayType::getNumElements(left) != ArrayType::getNumElements(right)) { |
| 1512 | return tryCombineListTypes(left, right, result); |
| 1513 | } |
| 1514 | LogicalType childType; |
| 1515 | if (!LogicalTypeUtils::tryGetMaxLogicalType(ArrayType::getChildType(left), |
| 1516 | ArrayType::getChildType(right), childType)) { |
| 1517 | return false; |
| 1518 | } |
| 1519 | result = LogicalType::ARRAY(std::move(childType), ArrayType::getNumElements(left)); |
| 1520 | return true; |
| 1521 | } |
| 1522 | |
| 1523 | static bool tryCombineListArrayTypes(const LogicalType& left, const LogicalType& right, |
| 1524 | LogicalType& result) { |
no test coverage detected