#include #include "registerTableFunctions.h" #if USE_HDFS #include #include #include #include #include namespace DB { StoragePtr TableFunctionHDFS::getStorage( const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const String & compression_method) const { return StorageHDFS::create(source, StorageID(getDatabaseName(), table_name), format, columns, ConstraintsDescription{}, global_context, compression_method); } AccessType TableFunctionHDFS::getRequiredAccessType() const { return AccessType::hdfs; } #if USE_HDFS void registerTableFunctionHDFS(TableFunctionFactory & factory) { factory.registerFunction(); } #endif } #endif