mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-09 17:14:47 +00:00
Fix PR comments: check exception in the test
This commit is contained in:
parent
83fa51f400
commit
b772140514
@ -11,3 +11,5 @@
|
|||||||
{"data":["c", "1"]}
|
{"data":["c", "1"]}
|
||||||
{"totals": ["", "3"]}
|
{"totals": ["", "3"]}
|
||||||
{"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":30}}
|
{"statistics": {"rows":3, "elapsed":ELAPSED, "rows_read":3, "bytes_read":30}}
|
||||||
|
3
|
||||||
|
Value passed to 'throwIf' function is non-zero:
|
||||||
|
@ -16,4 +16,8 @@ $CLICKHOUSE_CLIENT -q "SELECT 2;"
|
|||||||
# Check Totals
|
# Check Totals
|
||||||
$CLICKHOUSE_CLIENT -q "SELECT name, count() AS c FROM test_table GROUP BY name WITH TOTALS ORDER BY name FORMAT JSONCompactWithProgress settings max_block_size=2;" | grep -v --text "progress" | sed -E 's/"elapsed":[0-9]+\.[0-9]+/"elapsed":ELAPSED/g'
|
$CLICKHOUSE_CLIENT -q "SELECT name, count() AS c FROM test_table GROUP BY name WITH TOTALS ORDER BY name FORMAT JSONCompactWithProgress settings max_block_size=2;" | grep -v --text "progress" | sed -E 's/"elapsed":[0-9]+\.[0-9]+/"elapsed":ELAPSED/g'
|
||||||
|
|
||||||
|
$CLICKHOUSE_CLIENT -q "SELECT 3;"
|
||||||
|
# Check exceptions
|
||||||
|
${CLICKHOUSE_CURL} -sS "$CLICKHOUSE_URL" -d "SELECT throwIf(number = 15), 1::Int64 as a, '\"' from numbers(100) format JSONCompactWithProgress settings output_format_json_quote_64bit_integers=1, max_block_size=10" | grep "exception" | cut -c42-88
|
||||||
|
|
||||||
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test_table;"
|
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS test_table;"
|
||||||
|
Loading…
Reference in New Issue
Block a user