mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
29 lines
648 B
C++
29 lines
648 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
#include <Storages/IStorage.h>
|
|
#include <Interpreters/Cluster.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct Settings;
|
|
class Context;
|
|
class Cluster;
|
|
|
|
namespace ClusterProxy
|
|
{
|
|
|
|
class IStreamFactory;
|
|
|
|
/// Execute a distributed query, creating a vector of BlockInputStreams, from which the result can be read.
|
|
/// `stream_factory` object encapsulates the logic of creating streams for a different type of query
|
|
/// (currently SELECT, DESCRIBE).
|
|
BlockInputStreams executeQuery(
|
|
IStreamFactory & stream_factory, const ClusterPtr & cluster,
|
|
const ASTPtr & query_ast, const Context & context, const Settings & settings);
|
|
|
|
}
|
|
|
|
}
|