diff options
| author | AlexSm <[email protected]> | 2024-01-04 15:09:05 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-04 15:09:05 +0100 |
| commit | dab291146f6cd7d35684e3a1150e5bb1c412982c (patch) | |
| tree | 36ef35f6cacb6432845a4a33f940c95871036b32 /contrib/clickhouse/src/TableFunctions/TableFunctionRemote.h | |
| parent | 63660ad5e7512029fd0218e7a636580695a24e1f (diff) | |
Library import 5, delete go dependencies (#832)
* Library import 5, delete go dependencies
* Fix yt client
Diffstat (limited to 'contrib/clickhouse/src/TableFunctions/TableFunctionRemote.h')
| -rw-r--r-- | contrib/clickhouse/src/TableFunctions/TableFunctionRemote.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/contrib/clickhouse/src/TableFunctions/TableFunctionRemote.h b/contrib/clickhouse/src/TableFunctions/TableFunctionRemote.h deleted file mode 100644 index 0f75bf2b854..00000000000 --- a/contrib/clickhouse/src/TableFunctions/TableFunctionRemote.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include <TableFunctions/ITableFunction.h> -#include <Interpreters/Cluster.h> -#include <Interpreters/StorageID.h> - - -namespace DB -{ - -/* remote ('address', db, table) - creates a temporary StorageDistributed. - * To get the table structure, a DESC TABLE request is made to the remote server. - * For example: - * SELECT count() FROM remote('example01-01-1', merge, hits) - go to `example01-01-1`, in the merge database, the hits table. - * An expression that generates a set of shards and replicas can also be specified as the host name - see below. - * Also, there is a cluster version of the function: cluster('existing_cluster_name', 'db', 'table'). - */ -class TableFunctionRemote : public ITableFunction -{ -public: - explicit TableFunctionRemote(const std::string & name_, bool secure_ = false); - - std::string getName() const override { return name; } - - ColumnsDescription getActualTableStructure(ContextPtr context, bool is_insert_query) const override; - - bool needStructureConversion() const override { return false; } - -private: - - StoragePtr executeImpl(const ASTPtr & ast_function, ContextPtr context, const std::string & table_name, ColumnsDescription cached_columns, bool is_insert_query) const override; - const char * getStorageTypeName() const override { return "Distributed"; } - - void parseArguments(const ASTPtr & ast_function, ContextPtr context) override; - - std::string name; - bool is_cluster_function; - PreformattedMessage help_message; - bool secure; - - ClusterPtr cluster; - StorageID remote_table_id = StorageID::createEmpty(); - ASTPtr remote_table_function_ptr; - ASTPtr sharding_key = nullptr; -}; - -} |
