mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
24 lines
525 B
C++
24 lines
525 B
C++
#pragma once
|
|
|
|
#include <Storages/ColumnsDescription.h>
|
|
#include <Parsers/IAST.h>
|
|
#include <Parsers/queryToString.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Cluster;
|
|
class Context;
|
|
|
|
/// 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 std::string & database,
|
|
const std::string & table,
|
|
const Context & context,
|
|
const ASTPtr & table_func_ptr = nullptr);
|
|
|
|
}
|