1
scale
100000
1000000
func
sumMap
sumMapWithOverflow
CREATE TEMPORARY TABLE sum_map_{scale} AS
SELECT
arrayMap(x -> (x % 23), range(50)) AS key,
arrayMap(x -> intDiv(number, x + 1), range(50)) AS val
FROM numbers({scale})
SELECT {func}(key, val) FROM sum_map_{scale} FORMAT Null