mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
29 lines
732 B
C++
29 lines
732 B
C++
#pragma once
|
|
|
|
#include <Storages/ColumnsDescription.h>
|
|
#include <Parsers/IAST.h>
|
|
#include <Parsers/queryToString.h>
|
|
#include <Interpreters/Cluster.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
class Context;
|
|
struct StorageID;
|
|
|
|
/// Find the names and types of the table columns on any server in the cluster.
|
|
/// Used to implement the `remote` table function and others.
|
|
ColumnsDescription getStructureOfRemoteTable(
|
|
const Cluster & cluster,
|
|
const StorageID & table_id,
|
|
const Context & context,
|
|
const ASTPtr & table_func_ptr = nullptr);
|
|
|
|
ColumnsDescription getStructureOfRemoteTableInShard(
|
|
const Cluster::ShardInfo & shard_info,
|
|
const StorageID & table_id,
|
|
const Context & context,
|
|
const ASTPtr & table_func_ptr = nullptr);
|
|
|
|
}
|