diff --git a/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.reference b/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.reference index a4009b07e58..bc791c0e6fa 100644 --- a/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.reference +++ b/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.reference @@ -1 +1,2 @@ exceeded +20002 diff --git a/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.sh b/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.sh index 674515a5b80..2c593845371 100755 --- a/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.sh +++ b/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.sh @@ -3,4 +3,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh +# Too deep recursion perl -e 'print "(" x 10000 ' | $CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" --data-binary @- | grep -oF 'exceeded' + +# But this is Ok +perl -e 'print "SELECT 1" . (",1" x 10000) ' | $CLICKHOUSE_CURL -sS "$CLICKHOUSE_URL" --data-binary @- | wc -c