mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
dbms: added test [#METR-15352].
This commit is contained in:
parent
82b3fb4921
commit
b1c48ebc08
@ -0,0 +1 @@
|
||||
0 4
|
16
dbms/tests/queries/0_stateless/00133_memory_tracker_and_exception_safety.sh
Executable file
16
dbms/tests/queries/0_stateless/00133_memory_tracker_and_exception_safety.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
clickhouse-client -n --query="
|
||||
DROP TABLE IF EXISTS test.numbers_100k;
|
||||
CREATE VIEW test.numbers_100k AS SELECT * FROM system.numbers LIMIT 100000;
|
||||
";
|
||||
|
||||
for i in $(seq 1000000 20000 10000000 && seq 10100000 100000 20000000); do
|
||||
clickhouse-client --max_memory_usage=$i --query="
|
||||
SELECT intDiv(number, 5) AS k, max(toString(number)) FROM remote('127.0.0.{1,2}', test.numbers_100k) GROUP BY k ORDER BY k LIMIT 1;
|
||||
" 2> /dev/null;
|
||||
CODE=$?;
|
||||
[ "$CODE" -ne "241" ] && [ "$CODE" -ne "0" ] && echo "Fail" && break;
|
||||
done | uniq
|
||||
|
||||
clickhouse-client --query="DROP TABLE test.numbers_100k;";
|
Loading…
Reference in New Issue
Block a user