mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
26 lines
699 B
C++
26 lines
699 B
C++
#include "GatherUtils.h"
|
|
#include "Selectors.h"
|
|
#include "Algorithms.h"
|
|
|
|
namespace DB::GatherUtils
|
|
{
|
|
|
|
struct ArrayHasSelectArraySourcePair : public ArraySourcePairSelector<ArrayHasSelectArraySourcePair>
|
|
{
|
|
template <typename FirstSource, typename SecondSource>
|
|
static void selectSourcePair(FirstSource && first, SecondSource && second, bool all, ColumnUInt8 & result)
|
|
{
|
|
if (all)
|
|
arrayAllAny<true>(first, second, result);
|
|
else
|
|
arrayAllAny<false>(first, second, result);
|
|
}
|
|
};
|
|
|
|
void sliceHas(IArraySource & first, IArraySource & second, bool all, ColumnUInt8 & result)
|
|
{
|
|
ArrayHasSelectArraySourcePair::select(first, second, all, result);
|
|
}
|
|
|
|
}
|