#pragma once #include #include namespace DB { /* file(path, format, structure) - 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; } private: StoragePtr getStorage( const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const std::string & compression_method) const override; AccessType getRequiredAccessType() const override; }; }