ClickHouse/tests/queries/0_stateless/02116_global_in_time_limit.sh
2021-11-26 18:03:14 +03:00

17 lines
511 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
# This test is pretty depend on query execution time
# In release, it works about 14 seconds with no timeout.
function run
{
${CLICKHOUSE_CLIENT} -q "select number from remote('127.0.0.2', numbers(10)) where number global in (select number + 9 from numbers(400000000)) settings max_execution_time=3" 2>&1 | cat > /dev/null
}
export -f run
timeout 10 bash -c run