From 0cba91f63d1fa667a9963077efaa1a23eca7538f Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Wed, 1 Dec 2021 11:41:44 +0300 Subject: [PATCH] SQLUserDefinedFunctionVisitor updated exception message --- src/Interpreters/UserDefinedSQLFunctionVisitor.cpp | 4 +++- .../02126_identity_user_defined_function.reference | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Interpreters/UserDefinedSQLFunctionVisitor.cpp b/src/Interpreters/UserDefinedSQLFunctionVisitor.cpp index bc63a4dfec3..3e82930af9d 100644 --- a/src/Interpreters/UserDefinedSQLFunctionVisitor.cpp +++ b/src/Interpreters/UserDefinedSQLFunctionVisitor.cpp @@ -39,7 +39,9 @@ bool UserDefinedSQLFunctionMatcher::needChildVisit(const ASTPtr &, const ASTPtr ASTPtr UserDefinedSQLFunctionMatcher::tryToReplaceFunction(const ASTFunction & function, std::unordered_set & udf_in_replace_process) { if (udf_in_replace_process.find(function.name) != udf_in_replace_process.end()) - throw Exception(ErrorCodes::UNSUPPORTED_METHOD, "Recursive function call during function user defined function call {}", function.name); + throw Exception(ErrorCodes::UNSUPPORTED_METHOD, + "Recursive function call detected during function call {}", + function.name); auto user_defined_function = UserDefinedSQLFunctionFactory::instance().tryGet(function.name); if (!user_defined_function) diff --git a/tests/queries/0_stateless/02126_identity_user_defined_function.reference b/tests/queries/0_stateless/02126_identity_user_defined_function.reference index d00491fd7e5..26b37d07fac 100644 --- a/tests/queries/0_stateless/02126_identity_user_defined_function.reference +++ b/tests/queries/0_stateless/02126_identity_user_defined_function.reference @@ -1 +1,2 @@ 1 +5