mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
95bbda3667
Add ArrayJoinTransform and ArrayJoinStep.
31 lines
646 B
C++
31 lines
646 B
C++
#pragma once
|
|
#include <Processors/ISimpleTransform.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ArrayJoinAction;
|
|
using ArrayJoinActionPtr = std::shared_ptr<ArrayJoinAction>;
|
|
|
|
/// Execute ARRAY JOIN
|
|
class ArrayJoinTransform : public ISimpleTransform
|
|
{
|
|
public:
|
|
ArrayJoinTransform(
|
|
const Block & header_,
|
|
ArrayJoinActionPtr array_join_,
|
|
bool on_totals_ = false);
|
|
|
|
String getName() const override { return "ArrayJoinTransform"; }
|
|
|
|
static Block transformHeader(Block header, const ArrayJoinActionPtr & array_join);
|
|
|
|
protected:
|
|
void transform(Chunk & chunk) override;
|
|
|
|
private:
|
|
ArrayJoinActionPtr array_join;
|
|
};
|
|
|
|
}
|