1 | #include "GatherUtils.h" |
2 | #include "Selectors.h" |
3 | #include "Algorithms.h" |
4 | |
5 | namespace DB::GatherUtils |
6 | { |
7 | |
8 | struct ArrayHasSelectArraySourcePair : public ArraySourcePairSelector<ArrayHasSelectArraySourcePair> |
9 | { |
10 | template <typename FirstSource, typename SecondSource> |
11 | static void selectSourcePair(FirstSource && first, SecondSource && second, bool all, ColumnUInt8 & result) |
12 | { |
13 | if (all) |
14 | arrayAllAny<true>(first, second, result); |
15 | else |
16 | arrayAllAny<false>(first, second, result); |
17 | } |
18 | }; |
19 | |
20 | void sliceHas(IArraySource & first, IArraySource & second, bool all, ColumnUInt8 & result) |
21 | { |
22 | ArrayHasSelectArraySourcePair::select(first, second, all, result); |
23 | } |
24 | |
25 | } |
26 | |