ClickHouse/dbms/src/TableFunctions/TableFunctionMerge.h

22 lines
517 B
C++
Raw Normal View History

#pragma once
#include <TableFunctions/ITableFunction.h>
namespace DB
{
/* merge (db_name, tables_regexp) - creates a temporary StorageMerge.
2017-04-16 15:00:33 +00:00
* The structure of the table is taken from the first table that came up, suitable for regexp.
* If there is no such table, an exception is thrown.
*/
class TableFunctionMerge: public ITableFunction
{
public:
std::string getName() const override { return "merge"; }
2017-05-23 18:46:52 +00:00
StoragePtr execute(const ASTPtr & ast_function, const Context & context) const override;
};
}