ClickHouse/dbms/src/Storages/getStructureOfRemoteTable.h
2020-03-06 23:38:19 +03:00

24 lines
510 B
C++

#pragma once
#include <Storages/ColumnsDescription.h>
#include <Parsers/IAST.h>
#include <Parsers/queryToString.h>
namespace DB
{
class Cluster;
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);
}