Skip to content

Commit

Permalink
Interpreter: Remove CheckQuery. (#4568)
Browse files Browse the repository at this point in the history
close #4569
  • Loading branch information
ywqzzy authored May 11, 2022
1 parent c88f1ad commit f7d2d28
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 326 deletions.
124 changes: 0 additions & 124 deletions dbms/src/Interpreters/InterpreterCheckQuery.cpp

This file was deleted.

38 changes: 0 additions & 38 deletions dbms/src/Interpreters/InterpreterCheckQuery.h

This file was deleted.

6 changes: 0 additions & 6 deletions dbms/src/Interpreters/InterpreterFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <Common/typeid_cast.h>
#include <Interpreters/InterpreterAlterQuery.h>
#include <Interpreters/InterpreterCheckQuery.h>
#include <Interpreters/InterpreterCreateQuery.h>
#include <Interpreters/InterpreterDBGInvokeQuery.h>
#include <Interpreters/InterpreterDeleteQuery.h>
Expand All @@ -35,7 +34,6 @@
#include <Interpreters/InterpreterTruncateQuery.h>
#include <Interpreters/InterpreterUseQuery.h>
#include <Parsers/ASTAlterQuery.h>
#include <Parsers/ASTCheckQuery.h>
#include <Parsers/ASTCreateQuery.h>
#include <Parsers/ASTDBGInvokeQuery.h>
#include <Parsers/ASTDeleteQuery.h>
Expand Down Expand Up @@ -147,10 +145,6 @@ std::unique_ptr<IInterpreter> InterpreterFactory::get(ASTPtr & query, Context &
throwIfReadOnly(context);
return std::make_unique<InterpreterAlterQuery>(query, context);
}
else if (typeid_cast<ASTCheckQuery *>(query.get()))
{
return std::make_unique<InterpreterCheckQuery>(query, context);
}
else if (typeid_cast<ASTDeleteQuery *>(query.get()))
{
bool allow_materialized = static_cast<bool>(context.getSettingsRef().insert_allow_materialized_columns);
Expand Down
60 changes: 0 additions & 60 deletions dbms/src/Parsers/ASTCheckQuery.h

This file was deleted.

63 changes: 0 additions & 63 deletions dbms/src/Parsers/ParserCheckQuery.cpp

This file was deleted.

31 changes: 0 additions & 31 deletions dbms/src/Parsers/ParserCheckQuery.h

This file was deleted.

5 changes: 1 addition & 4 deletions dbms/src/Parsers/ParserQueryWithOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

#include <Parsers/ParserAlterQuery.h>
#include <Parsers/ParserCheckQuery.h>
#include <Parsers/ParserCreateQuery.h>
#include <Parsers/ParserDescribeTableQuery.h>
#include <Parsers/ParserDropQuery.h>
Expand All @@ -38,7 +37,6 @@ bool ParserQueryWithOutput::parseImpl(Pos & pos, ASTPtr & node, Expected & expec
ParserAlterQuery alter_p;
ParserRenameQuery rename_p;
ParserDropQuery drop_p;
ParserCheckQuery check_p;

ASTPtr query;

Expand All @@ -50,8 +48,7 @@ bool ParserQueryWithOutput::parseImpl(Pos & pos, ASTPtr & node, Expected & expec
|| create_p.parse(pos, query, expected)
|| alter_p.parse(pos, query, expected)
|| rename_p.parse(pos, query, expected)
|| drop_p.parse(pos, query, expected)
|| check_p.parse(pos, query, expected);
|| drop_p.parse(pos, query, expected);

if (!parsed)
return false;
Expand Down

0 comments on commit f7d2d28

Please sign in to comment.