Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpreter: Remove kill Query #4564

Merged
merged 6 commits into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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