mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Include FieldVisitors.h in less files.
This commit is contained in:
parent
367c537106
commit
56b065881a
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <Core/Types.h>
|
||||
#include <Parsers/ASTFunction.h>
|
||||
#include <Parsers/IAST.h>
|
||||
#include <Storages/IStorage_fwd.h>
|
||||
#include <Databases/IDatabase.h>
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <Parsers/ASTColumnDeclaration.h>
|
||||
#include <Parsers/ASTCreateQuery.h>
|
||||
#include <Parsers/ASTIdentifier.h>
|
||||
#include <Parsers/ASTIndexDeclaration.h>
|
||||
#include <Parsers/ASTLiteral.h>
|
||||
#include <Parsers/ASTNameTypePair.h>
|
||||
#include <Parsers/ASTInsertQuery.h>
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <Parsers/ParserCreateQuery.h>
|
||||
#include <Parsers/ASTRenameQuery.h>
|
||||
#include <Parsers/formatAST.h>
|
||||
#include <Parsers/ASTIndexDeclaration.h>
|
||||
#include <Parsers/ASTInsertQuery.h>
|
||||
#include <Interpreters/InterpreterCreateQuery.h>
|
||||
#include <Interpreters/InterpreterRenameQuery.h>
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <Core/Field.h>
|
||||
#include <Core/Types.h>
|
||||
#include <Common/FieldVisitors.h>
|
||||
#include <IO/WriteHelpers.h>
|
||||
#include <Parsers/ASTExpressionList.h>
|
||||
#include <Parsers/ASTFunction.h>
|
||||
|
@ -1,13 +1,18 @@
|
||||
#include <Storages/IndicesDescription.h>
|
||||
|
||||
#include <Parsers/ASTIndexDeclaration.h>
|
||||
#include <Parsers/formatAST.h>
|
||||
#include <Parsers/ParserCreateQuery.h>
|
||||
#include <Parsers/parseQuery.h>
|
||||
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
bool IndicesDescription::empty() const
|
||||
{
|
||||
return indices.empty();
|
||||
}
|
||||
|
||||
bool IndicesDescription::has(const String & name) const
|
||||
{
|
||||
return std::cend(indices) != std::find_if(
|
||||
|
@ -1,11 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <Parsers/ASTIndexDeclaration.h>
|
||||
#include <Core/Types.h>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
class ASTIndexDeclaration;
|
||||
using IndicesASTs = std::vector<std::shared_ptr<ASTIndexDeclaration>>;
|
||||
|
||||
struct IndicesDescription
|
||||
@ -14,7 +17,7 @@ struct IndicesDescription
|
||||
|
||||
IndicesDescription() = default;
|
||||
|
||||
bool empty() const { return indices.empty(); }
|
||||
bool empty() const;
|
||||
bool has(const String & name) const;
|
||||
|
||||
String toString() const;
|
||||
|
Loading…
Reference in New Issue
Block a user