mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Add a test
This commit is contained in:
parent
3787bf72c2
commit
cc329c3bf9
@ -0,0 +1,2 @@
|
|||||||
|
1
|
||||||
|
1
|
11
tests/queries/0_stateless/02160_untuple_exponential_growth.sh
Executable file
11
tests/queries/0_stateless/02160_untuple_exponential_growth.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
# shellcheck source=../shell_config.sh
|
||||||
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
|
# Should finish in reasonable time (milliseconds).
|
||||||
|
# In previous versions this query led to exponential complexity of query analysis.
|
||||||
|
|
||||||
|
${CLICKHOUSE_LOCAL} --query "SELECT untuple(tuple(untuple((1, untuple((untuple(tuple(untuple(tuple(untuple((untuple((1, 1, 1, 1)), 1, 1, 1)))))), 1, 1))))))" 2>&1 | grep -cF 'TOO_BIG_AST'
|
||||||
|
${CLICKHOUSE_LOCAL} --query "SELECT untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple(tuple(untuple((1, 1, 1, 1, 1))))))))))))))))))))))))))" 2>&1 | grep -cF 'TOO_BIG_AST'
|
Loading…
Reference in New Issue
Block a user