mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
18 lines
290 B
MySQL
18 lines
290 B
MySQL
|
-- Check that max length works
|
||
|
|
||
|
SELECT max(length(mapKeys(a)))
|
||
|
FROM
|
||
|
(
|
||
|
SELECT a
|
||
|
FROM generateRandom('a Map(String, String)', 20, 5, 1)
|
||
|
LIMIT 1000
|
||
|
);
|
||
|
|
||
|
SELECT max(length(mapKeys(a)))
|
||
|
FROM
|
||
|
(
|
||
|
SELECT a
|
||
|
FROM generateRandom('a Map(String, String)', 20, 5, 20)
|
||
|
LIMIT 1000
|
||
|
);
|