ClickHouse/tests/queries/0_stateless/02539_generate_random_map.sql
2023-01-30 15:23:22 +01:00

18 lines
290 B
SQL

-- 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
);