| 151 | |
| 152 | template <TypeKind kind> |
| 153 | void checkVectorFlagsSetTyped( |
| 154 | const BaseVector& vector, |
| 155 | const SelectivityVector& asciiSetRows) { |
| 156 | using T = typename TypeTraits<kind>::NativeType; |
| 157 | auto* simpleVector = vector.as<SimpleVector<T>>(); |
| 158 | |
| 159 | checkBaseVectorFlagsSet(vector); |
| 160 | EXPECT_TRUE(simpleVector->getStats().min.has_value()); |
| 161 | EXPECT_TRUE(simpleVector->getStats().max.has_value()); |
| 162 | EXPECT_TRUE(simpleVector->isSorted().has_value()); |
| 163 | if constexpr (std::is_same_v<T, StringView>) { |
| 164 | asciiSetRows.applyToSelected([&](auto row) { |
| 165 | EXPECT_TRUE( |
| 166 | simpleVector->isNullAt(row) || |
| 167 | simpleVector->isAscii(row).has_value()); |
| 168 | }); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | template <> |
| 173 | void checkVectorFlagsSetTyped<TypeKind::MAP>( |
nothing calls this directly
no test coverage detected