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

12 lines
315 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)
. $CURDIR/../shell_config.sh
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+>' ||: