diff --git a/hybridse/src/planv2/ast_node_converter.cc b/hybridse/src/planv2/ast_node_converter.cc index 4e931215040..d77f56137c1 100644 --- a/hybridse/src/planv2/ast_node_converter.cc +++ b/hybridse/src/planv2/ast_node_converter.cc @@ -2019,7 +2019,7 @@ base::Status ConvertDropStatement(const zetasql::ASTDropStatement* root, node::N root->name()->ToIdentifierPathString()) *output = dynamic_cast(node_manager->MakeCmdNode(node::CmdType::kCmdDropDatabase, names[0])); - (*output)->SetIfNotExists(root->is_if_exists()); + (*output)->SetIfExists(root->is_if_exists()); return base::Status::OK(); } case zetasql::SchemaObjectKind::kIndex: {