summaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2023-12-22 17:10:22 +0100
committerGitHub <[email protected]>2023-12-22 17:10:22 +0100
commit148f920350c60c0ca2d89b637a5aea9093eee450 (patch)
tree6314b1433dac833398c333731e83f0ad77e81a0b /contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp
parent7116d46ae7c0259b5f9d489de263f8701e432b1c (diff)
Library import 2 (#639)
Diffstat (limited to 'contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp')
-rw-r--r--contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp b/contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp
index 3e87f4fe440..b155476fd79 100644
--- a/contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp
+++ b/contrib/clickhouse/src/Interpreters/InterpreterCreateFunctionQuery.cpp
@@ -1,7 +1,7 @@
#include <Interpreters/InterpreterCreateFunctionQuery.h>
#include <Access/ContextAccess.h>
-#include <Functions/UserDefined/IUserDefinedSQLObjectsLoader.h>
+#include <Functions/UserDefined/IUserDefinedSQLObjectsStorage.h>
#include <Functions/UserDefined/UserDefinedSQLFunctionFactory.h>
#include <Interpreters/Context.h>
#include <Interpreters/executeDDLQueryOnCluster.h>
@@ -32,7 +32,7 @@ BlockIO InterpreterCreateFunctionQuery::execute()
if (!create_function_query.cluster.empty())
{
- if (current_context->getUserDefinedSQLObjectsLoader().isReplicated())
+ if (current_context->getUserDefinedSQLObjectsStorage().isReplicated())
throw Exception(ErrorCodes::INCORRECT_QUERY, "ON CLUSTER is not allowed because used-defined functions are replicated automatically");
DDLQueryOnClusterParams params;