| 59 | |
| 60 | template <TypeKind kind> |
| 61 | void checkVectorFlagsClearedTyped( |
| 62 | const BaseVector& vector, |
| 63 | const SelectivityVector& asciiClearedRows, |
| 64 | const SelectivityVector& asciiRemainRows) { |
| 65 | using T = typename TypeTraits<kind>::NativeType; |
| 66 | auto* simpleVector = vector.as<SimpleVector<T>>(); |
| 67 | |
| 68 | checkBaseVectorFlagsCleared(vector); |
| 69 | EXPECT_FALSE(simpleVector->getStats().min.has_value()); |
| 70 | EXPECT_FALSE(simpleVector->getStats().max.has_value()); |
| 71 | EXPECT_FALSE(simpleVector->isSorted().has_value()); |
| 72 | if constexpr (std::is_same_v<T, StringView>) { |
| 73 | asciiClearedRows.applyToSelected([&](auto row) { |
| 74 | EXPECT_FALSE(simpleVector->isAscii(row).has_value()); |
| 75 | }); |
| 76 | asciiRemainRows.applyToSelected([&](auto row) { |
| 77 | EXPECT_TRUE( |
| 78 | simpleVector->isNullAt(row) || |
| 79 | simpleVector->isAscii(row).has_value()); |
| 80 | }); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | template <> |
| 85 | void checkVectorFlagsClearedTyped<TypeKind::MAP>( |
nothing calls this directly
no test coverage detected