mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
38 lines
864 B
C++
38 lines
864 B
C++
#pragma once
|
|
|
|
#include <Core/Names.h>
|
|
#include <Core/Block.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
class IFunctionOverloadResolver;
|
|
using FunctionOverloadResolverPtr = std::shared_ptr<IFunctionOverloadResolver>;
|
|
|
|
class ArrayJoinAction
|
|
{
|
|
public:
|
|
NameSet columns;
|
|
bool is_left = false;
|
|
bool is_unaligned = false;
|
|
|
|
/// For unaligned [LEFT] ARRAY JOIN
|
|
FunctionOverloadResolverPtr function_length;
|
|
FunctionOverloadResolverPtr function_greatest;
|
|
FunctionOverloadResolverPtr function_arrayResize;
|
|
|
|
/// For LEFT ARRAY JOIN.
|
|
FunctionOverloadResolverPtr function_builder;
|
|
|
|
ArrayJoinAction(const NameSet & array_joined_columns_, bool array_join_is_left, const Context & context);
|
|
void prepare(ColumnsWithTypeAndName & sample) const;
|
|
void execute(Block & block);
|
|
};
|
|
|
|
using ArrayJoinActionPtr = std::shared_ptr<ArrayJoinAction>;
|
|
|
|
}
|