mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
Fix test
This commit is contained in:
parent
6acb25c437
commit
5fe3c25429
@ -1,2 +1 @@
|
||||
Unknown function
|
||||
Function with name 'xyz' does not exist.
|
||||
UNKNOWN_FUNCTION
|
||||
|
@ -8,8 +8,7 @@ ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS test"
|
||||
${CLICKHOUSE_CLIENT} --query "CREATE TABLE test (s String) ENGINE = Memory"
|
||||
|
||||
# Calling an unknown function should not lead to creation of a 'user_defined' directory in the current directory
|
||||
${CLICKHOUSE_CLIENT} --query "SET allow_experimental_analyzer = 0;INSERT INTO test VALUES (xyz('abc'))" 2>&1 | grep -o -F 'Unknown function'
|
||||
${CLICKHOUSE_CLIENT} --query "SET allow_experimental_analyzer = 1;INSERT INTO test VALUES (xyz('abc'))" 2>&1 | grep -o -F "Function with name 'xyz' does not exist."
|
||||
${CLICKHOUSE_CLIENT} --query "INSERT INTO test VALUES (xyz('abc'))" 2>&1 | grep -o -F 'UNKNOWN_FUNCTION'
|
||||
|
||||
ls -ld user_defined 2> /dev/null
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user