Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 3c9bf00

Browse files
schedutronapavlo
authored andcommitted
Remove previous table existence check
1 parent b788114 commit 3c9bf00

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/optimizer/query_to_operator_transformer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ void QueryToOperatorTransformer::Visit(parser::InsertStatement *op) {
232232
catalog::Catalog::GetInstance()
233233
->GetDatabaseObject(op->GetDatabaseName(), txn_)
234234
->GetTableObject(op->GetTableName());
235-
236-
if (target_table == nullptr)
237-
throw CatalogException("Table " + op->GetTableName() + " is not found");
238235

239236
if (op->type == InsertType::SELECT) {
240237
auto insert_expr = std::make_shared<OperatorExpression>(

0 commit comments

Comments
 (0)