mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
21 lines
1023 B
SQL
21 lines
1023 B
SQL
select generateRandomStructure(5, 42);
|
|
select toTypeName(generateRandomStructure(5, 42));
|
|
select toColumnTypeName(generateRandomStructure(5, 42));
|
|
SELECT * FROM generateRandom(generateRandomStructure(5, 42), 42) LIMIT 1;
|
|
|
|
select generateRandomStructure(5, 42, 42); -- {serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH}
|
|
select generateRandomStructure('5'); -- {serverError ILLEGAL_TYPE_OF_ARGUMENT}
|
|
select generateRandomStructure(5, '42'); -- {serverError ILLEGAL_TYPE_OF_ARGUMENT}
|
|
select generateRandomStructure(materialize(5), 42); -- {serverError ILLEGAL_COLUMN}
|
|
select generateRandomStructure(5, materialize(42)); -- {serverError ILLEGAL_COLUMN}
|
|
|
|
desc generateRandom(10000000);
|
|
select * from generateRandom(10000000) limit 1;
|
|
select * from generateRandom(10000000, 2) limit 1;
|
|
select * from generateRandom(10000000, 2, 2) limit 1;
|
|
select * from generateRandom(10000000, 2, 2, 2) limit 1; -- {serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH}
|
|
|
|
set allow_suspicious_low_cardinality_types=1;
|
|
select generateRandomStructure(5, 4);
|
|
|