mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Add tests
This commit is contained in:
parent
ea7b5497c0
commit
bd0b2fbcf0
@ -0,0 +1,20 @@
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
||||
492708
|
18
tests/queries/0_stateless/01913_quantile_deterministic.sh
Executable file
18
tests/queries/0_stateless/01913_quantile_deterministic.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user