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/TableFunctionFile.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/TableFunctionFile.h')
| -rw-r--r-- | contrib/clickhouse/src/TableFunctions/TableFunctionFile.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/contrib/clickhouse/src/TableFunctions/TableFunctionFile.h b/contrib/clickhouse/src/TableFunctions/TableFunctionFile.h deleted file mode 100644 index 439ae87b4ae..00000000000 --- a/contrib/clickhouse/src/TableFunctions/TableFunctionFile.h +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include <TableFunctions/ITableFunctionFileLike.h> - - -namespace DB -{ - -/* file(path, format[, structure, compression]) - creates a temporary storage from file - * - * The file must be in the clickhouse data directory. - * The relative path begins with the clickhouse data directory. - */ -class TableFunctionFile : public ITableFunctionFileLike -{ -public: - static constexpr auto name = "file"; - std::string getName() const override - { - return name; - } - - ColumnsDescription getActualTableStructure(ContextPtr context, bool is_insert_query) const override; - - std::unordered_set<String> getVirtualsToCheckBeforeUsingStructureHint() const override - { - return {"_path", "_file"}; - } - -protected: - int fd = -1; - void parseFirstArguments(const ASTPtr & arg, const ContextPtr & context) override; - String getFormatFromFirstArgument() override; - -private: - StoragePtr getStorage( - const String & source, const String & format_, const ColumnsDescription & columns, ContextPtr global_context, - const std::string & table_name, const std::string & compression_method_) const override; - const char * getStorageTypeName() const override { return "File"; } -}; - -} |
