mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
23 lines
636 B
C++
23 lines
636 B
C++
#pragma once
|
|
|
|
#include <TableFunctions/ITableFunction.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/* generateRandom(structure, [max_array_length, max_string_length, random_seed])
|
|
* - creates a temporary storage that generates columns with random data
|
|
*/
|
|
class TableFunctionGenerateRandom : public ITableFunction
|
|
{
|
|
public:
|
|
static constexpr auto name = "generateRandom";
|
|
std::string getName() const override { return name; }
|
|
private:
|
|
StoragePtr executeImpl(const ASTPtr & ast_function, const Context & context, const std::string & table_name) const override;
|
|
const char * getStorageTypeName() const override { return "GenerateRandom"; }
|
|
};
|
|
|
|
|
|
}
|