ClickHouse/dbms/scripts/test_uniq_functions.sh
2018-06-05 20:43:10 +03:00

12 lines
263 B
Bash
Executable File

#!/usr/bin/env bash
for ((p = 2; p <= 10; p++))
do
for ((i = 1; i <= 9; i++))
do
n=$(( 10**p * i ))
echo -n "$n "
clickhouse-client -q "select uniqHLL12(number), uniq(number), uniqCombined(number) from numbers($n);"
done
done