ClickHouse/tests/queries/0_stateless/00971_query_id_in_logs.sh

13 lines
356 B
Bash
Raw Normal View History

2019-07-15 16:32:52 +00:00
#!/usr/bin/env bash
2019-07-24 18:07:24 +00:00
CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL=trace
2019-07-15 16:32:52 +00:00
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
2020-08-01 00:51:12 +00:00
. "$CURDIR"/../shell_config.sh
2019-07-15 16:32:52 +00:00
set -e
# No log lines without query id
2019-07-24 18:07:24 +00:00
$CLICKHOUSE_CLIENT --query_id=hello --query="SELECT count() FROM numbers(10)" 2>&1 | grep -vF ' {hello} ' | grep -P '<\w+>' ||: