MCPcopy Create free account
hub / github.com/ByConity/ByConity / dropLocalTableIfExists

Method dropLocalTableIfExists

programs/copier/ClusterCopier.cpp:1660–1669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1658}
1659
1660void ClusterCopier::dropLocalTableIfExists(const DatabaseAndTableName & table_name) const
1661{
1662 auto drop_ast = std::make_shared<ASTDropQuery>();
1663 drop_ast->if_exists = true;
1664 drop_ast->database = table_name.first;
1665 drop_ast->table = table_name.second;
1666
1667 InterpreterDropQuery interpreter(drop_ast, getContext());
1668 interpreter.execute();
1669}
1670
1671void ClusterCopier::dropHelpingTablesByPieceNumber(const TaskTable & task_table, size_t current_piece_number)
1672{

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected