mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
better includes
This commit is contained in:
parent
4a658f4325
commit
5717d48333
@ -30,6 +30,8 @@
|
||||
#include <Interpreters/Set.h>
|
||||
#include <Interpreters/AnalyzedJoin.h>
|
||||
#include <Interpreters/JoinSwitcher.h>
|
||||
#include <Interpreters/Join.h>
|
||||
#include <Interpreters/MergeJoin.h>
|
||||
|
||||
#include <AggregateFunctions/AggregateFunctionFactory.h>
|
||||
#include <AggregateFunctions/parseAggregateFunctionParameters.h>
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include <Common/typeid_cast.h>
|
||||
#include <Interpreters/JoinSwitcher.h>
|
||||
#include <Interpreters/Join.h>
|
||||
#include <Interpreters/MergeJoin.h>
|
||||
#include <Interpreters/join_common.h>
|
||||
|
||||
namespace DB
|
||||
@ -15,6 +17,14 @@ static ColumnWithTypeAndName correctNullability(ColumnWithTypeAndName && column,
|
||||
return std::move(column);
|
||||
}
|
||||
|
||||
JoinSwitcher::JoinSwitcher(std::shared_ptr<AnalyzedJoin> table_join_, const Block & right_sample_block_)
|
||||
: switched(false)
|
||||
, table_join(table_join_)
|
||||
, right_sample_block(right_sample_block_.cloneEmpty())
|
||||
{
|
||||
join = std::make_shared<Join>(table_join, right_sample_block);
|
||||
}
|
||||
|
||||
bool JoinSwitcher::addJoinedBlock(const Block & block, bool)
|
||||
{
|
||||
/// Trying to make MergeJoin without lock
|
||||
|
@ -1,12 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <mutex>
|
||||
#include <memory>
|
||||
|
||||
#include <Core/Block.h>
|
||||
#include <Interpreters/IJoin.h>
|
||||
#include <Interpreters/Join.h>
|
||||
#include <Interpreters/MergeJoin.h>
|
||||
#include <Interpreters/AnalyzedJoin.h>
|
||||
|
||||
namespace DB
|
||||
@ -15,13 +12,7 @@ namespace DB
|
||||
class JoinSwitcher : public IJoin
|
||||
{
|
||||
public:
|
||||
JoinSwitcher(std::shared_ptr<AnalyzedJoin> table_join_, const Block & right_sample_block_)
|
||||
: switched(false)
|
||||
, table_join(table_join_)
|
||||
, right_sample_block(right_sample_block_.cloneEmpty())
|
||||
{
|
||||
join = std::make_shared<Join>(table_join, right_sample_block);
|
||||
}
|
||||
JoinSwitcher(std::shared_ptr<AnalyzedJoin> table_join_, const Block & right_sample_block_);
|
||||
|
||||
bool addJoinedBlock(const Block & block, bool check_limits = true) override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user