mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Speedup test 02150_index_hypothesis_race_long
This commit is contained in:
parent
d7c485b8ab
commit
34eca80837
@ -11,13 +11,21 @@ $CLICKHOUSE_CLIENT -q "CREATE TABLE t_index_hypothesis (a UInt32, b UInt32, INDE
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "INSERT INTO t_index_hypothesis SELECT number, number + 1 FROM numbers(10000000)"
|
||||
|
||||
for _ in {0..30}; do
|
||||
run_query() {
|
||||
output=`$CLICKHOUSE_CLIENT -q "SELECT count() FROM t_index_hypothesis WHERE a = b"`
|
||||
if [[ $output != "0" ]]; then
|
||||
echo "output: $output, expected: 0"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
export -f run_query
|
||||
parallel -j 8 run_query ::: {0..30}
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo FAILED
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo OK
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user