mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
be831d09f7
* [WIP] * Update skip-list * Update ci_config.json * Do not sync inserts for test * Fix more tests * Fix another test * Enable one more test * More fixed tests * More test fixes * Do not absolutize server path for now * More test fixes * Unset CLICKHOUSE_LOG_COMMENT where necessary * Remove debugging set -e * Fix more tests * Fix test reference * Fix style check
29 lines
766 B
Bash
Executable File
29 lines
766 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ue
|
|
|
|
unset CLICKHOUSE_LOG_COMMENT
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
query_id=$(${CLICKHOUSE_CLIENT} -q "select lower(hex(reverse(reinterpretAsString(generateUUIDv4()))))")
|
|
|
|
${CLICKHOUSE_CLIENT} -q "select 1 format Null" "--query_id=$query_id"
|
|
|
|
${CLICKHOUSE_CURL} \
|
|
--header "X-ClickHouse-Query-Id: $query_id" \
|
|
$CLICKHOUSE_URL \
|
|
--get \
|
|
--data-urlencode "query=select 1 format Null"
|
|
|
|
${CLICKHOUSE_CLIENT} -n -q "
|
|
system flush logs;
|
|
select interface, initial_query_id = query_id
|
|
from system.query_log
|
|
where current_database = currentDatabase() AND query_id = '$query_id' and type = 'QueryFinish'
|
|
order by interface
|
|
;
|
|
"
|
|
|