Add stateless tests for setting hints

This commit is contained in:
Antonio Andelic 2021-12-19 12:29:04 +01:00
parent 25f88356e4
commit ef57b759e0
4 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_LOCAL --query="SET input_format_with_names_use_headers = 1" 2>&1 | grep -q "Code: 115. DB::Exception: Unknown setting input_format_with_names_use_headers: Maybe you meant \['input_format_with_names_use_header','input_format_with_types_use_header'\]. (UNKNOWN_SETTING)" && echo 'OK' || echo 'FAIL' ||:

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}&?input_format_with_names_use_headers=1" -d 'SELECT 1' 2>&1 | grep -q "Code: 115. DB::Exception: Unknown setting ?input_format_with_names_use_headers: Maybe you meant \['input_format_with_names_use_header','input_format_with_types_use_header'\]. (UNKNOWN_SETTING)" && echo 'OK' || echo 'FAIL' ||: