mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
A test added for max_parser_depth setting
This commit is contained in:
parent
32dcbfb627
commit
c7cbaab3db
@ -0,0 +1,4 @@
|
||||
-
|
||||
Maximum parse depth (40) exceeded.
|
||||
-
|
||||
Maximum parse depth (20) exceeded.
|
10
dbms/tests/queries/0_stateless/01062_max_parser_depth.sh
Executable file
10
dbms/tests/queries/0_stateless/01062_max_parser_depth.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
echo 'select 1' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&max_parser_depth=40" -d @- 2>&1 | grep -oP "Maximum parse depth .* exceeded."
|
||||
echo -
|
||||
echo 'select (1+1)*(2+1)' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&max_parser_depth=40" -d @- 2>&1 | grep -oP "Maximum parse depth .* exceeded."
|
||||
echo -
|
||||
echo 'select 1' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}&max_parser_depth=20" -d @- 2>&1 | grep -oP "Maximum parse depth .* exceeded."
|
Loading…
Reference in New Issue
Block a user