1#pragma once
2
3#include <Storages/ColumnsDescription.h>
4#include <Parsers/IAST.h>
5#include <Parsers/queryToString.h>
6
7
8namespace DB
9{
10
11class Cluster;
12class Context;
13
14/// Find the names and types of the table columns on any server in the cluster.
15/// Used to implement the `remote` table function and others.
16ColumnsDescription getStructureOfRemoteTable(
17 const Cluster & cluster,
18 const std::string & database,
19 const std::string & table,
20 const Context & context,
21 const ASTPtr & table_func_ptr = nullptr);
22
23}
24