2016-05-13 03:22:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-03-12 13:47:01 +00:00
|
|
|
#include <Storages/ColumnsDescription.h>
|
2018-07-24 13:10:34 +00:00
|
|
|
#include <Parsers/IAST.h>
|
2018-07-25 12:53:38 +00:00
|
|
|
#include <Parsers/queryToString.h>
|
2016-05-13 03:22:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Cluster;
|
|
|
|
class Context;
|
|
|
|
|
2017-04-16 15:00:33 +00:00
|
|
|
/// Find the names and types of the table columns on any server in the cluster.
|
|
|
|
/// Used to implement the `remote` table function and others.
|
2018-03-12 13:47:01 +00:00
|
|
|
ColumnsDescription getStructureOfRemoteTable(
|
2017-04-01 07:20:54 +00:00
|
|
|
const Cluster & cluster,
|
|
|
|
const std::string & database,
|
|
|
|
const std::string & table,
|
2018-07-24 13:10:34 +00:00
|
|
|
const Context & context,
|
|
|
|
const ASTPtr & table_func_ptr = nullptr);
|
2016-05-13 03:22:16 +00:00
|
|
|
|
|
|
|
}
|