mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
Better docs
This commit is contained in:
parent
746d12e7cc
commit
48d701f0e7
@ -422,13 +422,19 @@ REGISTER_FUNCTION(GenerateRandomStructure)
|
|||||||
{
|
{
|
||||||
R"(
|
R"(
|
||||||
Generates a random table structure.
|
Generates a random table structure.
|
||||||
This function takes an optional constant argument, the number of column in the result structure.
|
This function takes 4 optional constant arguments: the number of column in the result structure (random by default),
|
||||||
If argument is now specified, the number of columns is random. The maximum number of columns is 1024.
|
random seed (random by default), flag that indicates if big number types can be used (true by default),
|
||||||
|
flag that indicates if enum types can be used (true by default).
|
||||||
|
The maximum number of columns is 128.
|
||||||
The function returns a value of type String.
|
The function returns a value of type String.
|
||||||
)",
|
)",
|
||||||
Documentation::Examples{
|
Documentation::Examples{
|
||||||
{"random", "SELECT generateRandomStructure()"},
|
{"random", "SELECT generateRandomStructure()"},
|
||||||
{"with specified number of arguments", "SELECT generateRandomStructure(10)"}},
|
{"with specified number of arguments", "SELECT generateRandomStructure(10)"},
|
||||||
|
{"with specified seed", "SELECT generateRandomStructure(10, 42)"},
|
||||||
|
{"without big number types", "SELECT generateRandomStructure(10, NULL, false)"},
|
||||||
|
{"without enum types", "SELECT generateRandomStructure(10, NULL, false, false)"},
|
||||||
|
},
|
||||||
Documentation::Categories{"Random"}
|
Documentation::Categories{"Random"}
|
||||||
},
|
},
|
||||||
FunctionFactory::CaseSensitive);
|
FunctionFactory::CaseSensitive);
|
||||||
|
Loading…
Reference in New Issue
Block a user