mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix tests
This commit is contained in:
parent
44e1c2bcf5
commit
c03a75a289
@ -2,6 +2,7 @@
|
|||||||
#include <Interpreters/Context.h>
|
#include <Interpreters/Context.h>
|
||||||
#include <Interpreters/FunctionNameNormalizer.h>
|
#include <Interpreters/FunctionNameNormalizer.h>
|
||||||
#include <Interpreters/InterpreterDropFunctionQuery.h>
|
#include <Interpreters/InterpreterDropFunctionQuery.h>
|
||||||
|
#include <Interpreters/UserDefinedObjectsOnDisk.h>
|
||||||
#include <Functions/FunctionFactory.h>
|
#include <Functions/FunctionFactory.h>
|
||||||
#include <Parsers/ASTDropFunctionQuery.h>
|
#include <Parsers/ASTDropFunctionQuery.h>
|
||||||
|
|
||||||
@ -15,6 +16,7 @@ BlockIO InterpreterDropFunctionQuery::execute()
|
|||||||
FunctionNameNormalizer().visit(query_ptr.get());
|
FunctionNameNormalizer().visit(query_ptr.get());
|
||||||
auto & drop_function_query = query_ptr->as<ASTDropFunctionQuery &>();
|
auto & drop_function_query = query_ptr->as<ASTDropFunctionQuery &>();
|
||||||
FunctionFactory::instance().unregisterUserDefinedFunction(drop_function_query.function_name);
|
FunctionFactory::instance().unregisterUserDefinedFunction(drop_function_query.function_name);
|
||||||
|
UserDefinedObjectsOnDisk::instance().removeUserDefinedFunction(getContext(), drop_function_query.function_name);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,11 +45,13 @@ CREATE TABLE [] TABLE CREATE
|
|||||||
CREATE VIEW [] VIEW CREATE
|
CREATE VIEW [] VIEW CREATE
|
||||||
CREATE DICTIONARY [] DICTIONARY CREATE
|
CREATE DICTIONARY [] DICTIONARY CREATE
|
||||||
CREATE TEMPORARY TABLE [] GLOBAL CREATE
|
CREATE TEMPORARY TABLE [] GLOBAL CREATE
|
||||||
|
CREATE FUNCTION [] DATABASE CREATE
|
||||||
CREATE [] \N ALL
|
CREATE [] \N ALL
|
||||||
DROP DATABASE [] DATABASE DROP
|
DROP DATABASE [] DATABASE DROP
|
||||||
DROP TABLE [] TABLE DROP
|
DROP TABLE [] TABLE DROP
|
||||||
DROP VIEW [] VIEW DROP
|
DROP VIEW [] VIEW DROP
|
||||||
DROP DICTIONARY [] DICTIONARY DROP
|
DROP DICTIONARY [] DICTIONARY DROP
|
||||||
|
DROP FUNCTION [] DATABASE DROP
|
||||||
DROP [] \N ALL
|
DROP [] \N ALL
|
||||||
TRUNCATE ['TRUNCATE TABLE'] TABLE ALL
|
TRUNCATE ['TRUNCATE TABLE'] TABLE ALL
|
||||||
OPTIMIZE ['OPTIMIZE TABLE'] TABLE ALL
|
OPTIMIZE ['OPTIMIZE TABLE'] TABLE ALL
|
||||||
|
Loading…
Reference in New Issue
Block a user