mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +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
|
||
|
);
|