Skip to content

Commit

Permalink
Interpreter: Remove kill Query (#4564)
Browse files Browse the repository at this point in the history
close #4567
  • Loading branch information
ywqzzy authored May 11, 2022
1 parent a446006 commit c88f1ad
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 468 deletions.
6 changes: 0 additions & 6 deletions dbms/src/Interpreters/InterpreterFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <Interpreters/InterpreterExistsQuery.h>
#include <Interpreters/InterpreterFactory.h>
#include <Interpreters/InterpreterInsertQuery.h>
#include <Interpreters/InterpreterKillQueryQuery.h>
#include <Interpreters/InterpreterManageQuery.h>
#include <Interpreters/InterpreterRenameQuery.h>
#include <Interpreters/InterpreterSelectQuery.h>
Expand All @@ -42,7 +41,6 @@
#include <Parsers/ASTDeleteQuery.h>
#include <Parsers/ASTDropQuery.h>
#include <Parsers/ASTInsertQuery.h>
#include <Parsers/ASTKillQueryQuery.h>
#include <Parsers/ASTManageQuery.h>
#include <Parsers/ASTRenameQuery.h>
#include <Parsers/ASTSelectQuery.h>
Expand Down Expand Up @@ -153,10 +151,6 @@ std::unique_ptr<IInterpreter> InterpreterFactory::get(ASTPtr & query, Context &
{
return std::make_unique<InterpreterCheckQuery>(query, context);
}
else if (typeid_cast<ASTKillQueryQuery *>(query.get()))
{
return std::make_unique<InterpreterKillQueryQuery>(query, context);
}
else if (typeid_cast<ASTDeleteQuery *>(query.get()))
{
bool allow_materialized = static_cast<bool>(context.getSettingsRef().insert_allow_materialized_columns);
Expand Down
241 changes: 0 additions & 241 deletions dbms/src/Interpreters/InterpreterKillQueryQuery.cpp

This file was deleted.

45 changes: 0 additions & 45 deletions dbms/src/Interpreters/InterpreterKillQueryQuery.h

This file was deleted.

6 changes: 0 additions & 6 deletions dbms/src/Interpreters/ProcessList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <Interpreters/ProcessList.h>
#include <Interpreters/Settings.h>
#include <Parsers/ASTIdentifier.h>
#include <Parsers/ASTKillQueryQuery.h>
#include <Parsers/ASTSelectQuery.h>
#include <Parsers/ASTSelectWithUnionQuery.h>
#include <common/logger_useful.h>
Expand All @@ -42,11 +41,6 @@ static bool isUnlimitedQuery(const IAST * ast)
{
if (!ast)
return false;

/// It is KILL QUERY
if (typeid_cast<const ASTKillQueryQuery *>(ast))
return true;

/// It is SELECT FROM system.processes
/// NOTE: This is very rough check.
/// False negative: USE system; SELECT * FROM processes;
Expand Down
35 changes: 0 additions & 35 deletions dbms/src/Parsers/ASTKillQueryQuery.cpp

This file was deleted.

Loading

0 comments on commit c88f1ad

Please sign in to comment.