Less dependencies [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2017-01-14 11:47:34 +03:00
parent cf60632d78
commit 2a8564c68c
9 changed files with 15 additions and 5 deletions

View File

@ -27,7 +27,7 @@ using BlockInputStreamPtr = std::shared_ptr<IBlockInputStream>;
class IStorage; class IStorage;
using StoragePtr = std::shared_ptr<IStorage>; using StoragePtr = std::shared_ptr<IStorage>;
using Tables = std::vector<StoragePtr>; using Tables = std::map<String, StoragePtr>;
class ASTFunction; class ASTFunction;
class ASTExpressionList; class ASTExpressionList;

View File

@ -91,8 +91,8 @@ private:
const NamesAndTypesList & alias_columns_, const NamesAndTypesList & alias_columns_,
const ColumnDefaults & column_defaults_); const ColumnDefaults & column_defaults_);
void insertBlock(const Block & block) override { set->insertFromBlock(block); } void insertBlock(const Block & block) override;
size_t getSize() const override { return set->getTotalRowCount(); }; size_t getSize() const override;
}; };
} }

View File

@ -20,6 +20,7 @@
#include <DB/Parsers/ASTColumnDeclaration.h> #include <DB/Parsers/ASTColumnDeclaration.h>
#include <DB/Parsers/formatAST.h> #include <DB/Parsers/formatAST.h>
#include <DB/Parsers/ASTIdentifier.h> #include <DB/Parsers/ASTIdentifier.h>
#include <DB/Parsers/ASTLiteral.h>
#include <DB/Parsers/ParserCreateQuery.h> #include <DB/Parsers/ParserCreateQuery.h>
#include <DB/Parsers/parseQuery.h> #include <DB/Parsers/parseQuery.h>

View File

@ -26,6 +26,7 @@
#include <DB/Parsers/ASTFunction.h> #include <DB/Parsers/ASTFunction.h>
#include <DB/Parsers/ASTLiteral.h> #include <DB/Parsers/ASTLiteral.h>
#include <DB/Parsers/ASTOrderByElement.h> #include <DB/Parsers/ASTOrderByElement.h>
#include <DB/Parsers/ASTTablesInSelectQuery.h>
#include <DB/Interpreters/InterpreterSelectQuery.h> #include <DB/Interpreters/InterpreterSelectQuery.h>
#include <DB/Interpreters/InterpreterSetQuery.h> #include <DB/Interpreters/InterpreterSetQuery.h>

View File

@ -2,6 +2,7 @@
#include <DB/Columns/ColumnConst.h> #include <DB/Columns/ColumnConst.h>
#include <DB/Parsers/IAST.h> #include <DB/Parsers/IAST.h>
#include <DB/Parsers/ASTIdentifier.h> #include <DB/Parsers/ASTIdentifier.h>
#include <DB/Parsers/ASTLiteral.h>
#include <DB/DataTypes/DataTypesNumberFixed.h> #include <DB/DataTypes/DataTypesNumberFixed.h>
#include <DB/Interpreters/Context.h> #include <DB/Interpreters/Context.h>
#include <DB/Interpreters/ExpressionAnalyzer.h> #include <DB/Interpreters/ExpressionAnalyzer.h>

View File

@ -3,6 +3,8 @@
#include <DB/Interpreters/ExpressionAnalyzer.h> #include <DB/Interpreters/ExpressionAnalyzer.h>
#include <DB/Interpreters/ExpressionActions.h> #include <DB/Interpreters/ExpressionActions.h>
#include <DB/Interpreters/evaluateMissingDefaults.h> #include <DB/Interpreters/evaluateMissingDefaults.h>
#include <DB/Parsers/ASTExpressionList.h>
#include <DB/Parsers/ASTWithAlias.h>
#include <utility> #include <utility>

View File

@ -53,7 +53,7 @@ void StorageJoin::assertCompatible(ASTTableJoin::Kind kind_, ASTTableJoin::Stric
} }
void StorageJoin::insertBlock(const Block & block) override { join->insertFromBlock(block); } void StorageJoin::insertBlock(const Block & block) { join->insertFromBlock(block); }
size_t StorageJoin::getSize() const override { return join->getTotalRowCount(); }; size_t StorageJoin::getSize() const { return join->getTotalRowCount(); };
} }

View File

@ -16,6 +16,7 @@
#include <DB/Parsers/formatAST.h> #include <DB/Parsers/formatAST.h>
#include <DB/Parsers/ASTInsertQuery.h> #include <DB/Parsers/ASTInsertQuery.h>
#include <DB/Parsers/ASTSelectQuery.h>
#include <DB/Parsers/queryToString.h> #include <DB/Parsers/queryToString.h>
#include <DB/IO/ReadBufferFromString.h> #include <DB/IO/ReadBufferFromString.h>

View File

@ -101,6 +101,10 @@ StorageSet::StorageSet(
} }
void StorageSet::insertBlock(const Block & block) { set->insertFromBlock(block); }
size_t StorageSet::getSize() const { return set->getTotalRowCount(); };
void StorageSetOrJoinBase::restore() void StorageSetOrJoinBase::restore()
{ {
Poco::File tmp_dir(path + "tmp/"); Poco::File tmp_dir(path + "tmp/");