This commit is contained in:
Dmitry Novik 2024-09-19 18:28:50 +02:00
parent 6acb25c437
commit 5fe3c25429
2 changed files with 2 additions and 4 deletions

View File

@ -1,2 +1 @@
Unknown function
Function with name 'xyz' does not exist.
UNKNOWN_FUNCTION

View File

@ -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