| 1658 | } |
| 1659 | |
| 1660 | void 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 | |
| 1671 | void ClusterCopier::dropHelpingTablesByPieceNumber(const TaskTable & task_table, size_t current_piece_number) |
| 1672 | { |