#pragma once #include #include #include 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); } }