Add tests

This commit is contained in:
Alexey Milovidov 2021-06-16 09:51:13 +03:00
parent ea7b5497c0
commit bd0b2fbcf0
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,20 @@
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708
492708

View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS d"
${CLICKHOUSE_CLIENT} --query "CREATE TABLE d (oid UInt64) ENGINE = MergeTree ORDER BY oid"
${CLICKHOUSE_CLIENT} --min_insert_block_size_rows 0 --min_insert_block_size_bytes 0 --max_block_size 8192 --query "insert into d select * from numbers(1000000)"
# In previous ClickHouse versions there was a mistake that makes quantileDeterministic functions not really deterministic (in edge cases).
for _ in {1..20};
do
${CLICKHOUSE_CLIENT} --query "SELECT medianDeterministic(oid, oid) FROM d"
done
${CLICKHOUSE_CLIENT} --query "DROP TABLE d"