ClickHouse/dbms/tests/queries/0_stateless/00336_shard_stack_trace.sh

11 lines
643 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2016-06-25 21:51:44 +00:00
curl -sS 'http://localhost:8123/' -d 'SELECT a' | wc -l
curl -sS 'http://localhost:8123/?stacktrace=0' -d 'SELECT a' | wc -l
[[ $(curl -sS 'http://localhost:8123/?stacktrace=1' -d 'SELECT a' | wc -l) -gt 3 ]] && echo 'Ok' || echo 'Fail'
2017-01-25 13:21:35 +00:00
curl -sS 'http://localhost:8123/' -d "SELECT intDiv(number, 0) FROM remote('127.0.0.{1,2}', system.numbers)" | wc -l
2016-06-25 21:51:44 +00:00
clickhouse-client --query="SELECT a" 2>&1 | wc -l
[[ $(clickhouse-client --query="SELECT a" --stacktrace 2>&1 | wc -l) -gt 3 ]] && echo 'Ok' || echo 'Fail'
2017-01-25 13:21:35 +00:00
clickhouse-client --query="SELECT intDiv(number, 0) FROM remote('127.0.0.{1,2}', system.numbers)" 2>&1 | wc -l