mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test [#METR-21846].
This commit is contained in:
parent
f8b4ade0ec
commit
9f8ddb533c
@ -0,0 +1,7 @@
|
||||
1
|
||||
1
|
||||
Ok
|
||||
1
|
||||
2
|
||||
Ok
|
||||
2
|
10
dbms/tests/queries/0_stateless/00336_stack_trace.sh
Executable file
10
dbms/tests/queries/0_stateless/00336_stack_trace.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
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'
|
||||
curl -sS 'http://localhost:8123/' -d "SELECT intDiv(number, 0) FROM remote('127.0.0.{1,2}', system.numbers)" | wc -l
|
||||
|
||||
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'
|
||||
clickhouse-client --query="SELECT intDiv(number, 0) FROM remote('127.0.0.{1,2}', system.numbers)" 2>&1 | wc -l
|
Loading…
Reference in New Issue
Block a user