mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge branch 'master' of github.com:yandex/ClickHouse
This commit is contained in:
commit
6b9b8c1f83
@ -1,7 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[ -z "$CLICKHOUSE_CLIENT" ] && CLICKHOUSE_CLIENT="clickhouse-client"
|
||||
|
||||
SETTINGS="--compile=1 --min_count_to_compile=0 --max_threads=1 --max_memory_usage=8000000"
|
||||
if ! $CLICKHOUSE_CLIENT -q "SELECT length(groupArray(number)) FROM (SELECT * FROM system.numbers LIMIT 1000000)" $SETTINGS 2>&1 | grep -Fc 'Memory limit (for query) exceeded' ; then
|
||||
echo 'There is no expected exception "Memory limit (for query) exceeded: would use..."'
|
||||
output=$($CLICKHOUSE_CLIENT -q "SELECT length(groupArray(number)) FROM (SELECT * FROM system.numbers LIMIT 1000000)" $SETTINGS 2>&1)
|
||||
|
||||
[[ $? -eq 0 ]] && echo "Expected non-zero RC"
|
||||
if ! echo "$output" | grep -Fc 'Memory limit (for query) exceeded' ; then
|
||||
echo -e 'There is no expected exception "Memory limit (for query) exceeded: would use...". Got:' "\n$output"
|
||||
fi
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "SELECT 1"
|
||||
|
Loading…
Reference in New Issue
Block a user