mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Add stateless tests for setting hints
This commit is contained in:
parent
25f88356e4
commit
ef57b759e0
@ -0,0 +1 @@
|
|||||||
|
OK
|
7
tests/queries/0_stateless/02151_invalid_setting_with_hints_in_query.sh
Executable file
7
tests/queries/0_stateless/02151_invalid_setting_with_hints_in_query.sh
Executable 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' ||:
|
@ -0,0 +1 @@
|
|||||||
|
OK
|
@ -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' ||:
|
Loading…
Reference in New Issue
Block a user