| 1 | #pragma once | 
|---|---|
| 2 | |
| 3 | #include <Storages/ColumnsDescription.h> | 
| 4 | #include <Parsers/IAST.h> | 
| 5 | #include <Parsers/queryToString.h> | 
| 6 | |
| 7 | |
| 8 | namespace DB | 
| 9 | { | 
| 10 | |
| 11 | class Cluster; | 
| 12 | class 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. | 
| 16 | ColumnsDescription 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 | 
