ClickHouse/dbms/src/TableFunctions/TableFunctionS3.h
Vladimir Chebotarev 599ff389f7 Merge fix.
2019-09-12 11:57:55 +00:00

26 lines
607 B
C++

#pragma once
#include <TableFunctions/ITableFunctionFileLike.h>
#include <Interpreters/Context.h>
#include <Core/Block.h>
namespace DB
{
/* s3(source, format, structure) - creates a temporary storage for a file in S3
*/
class TableFunctionS3 : public ITableFunctionFileLike
{
public:
static constexpr auto name = "s3";
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 override;
};
}