More crystallized test

This commit is contained in:
Alexey Milovidov 2020-06-08 02:01:04 +03:00
parent d5443293a3
commit e507f6b836
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
function test()
{
for i in {1..50}; do
$CLICKHOUSE_CLIENT --query "SELECT groupArrayIfState(('Hello, world' AS s) || s || s || s || s || s || s || s || s || s, NOT throwIf(number > 50000000, 'Ok')) FROM system.numbers_mt GROUP BY number % 10";
done
}
export -f test;
# If the memory leak exists, it will lead to OOM fairly quickly.
timeout 10 bash -c test 2>&1 | grep -o -F 'Ok' | uniq