| 1649 | } |
| 1650 | |
| 1651 | void ClusterCopier::dropAndCreateLocalTable(const ASTPtr & create_ast) |
| 1652 | { |
| 1653 | const auto & create = create_ast->as<ASTCreateQuery &>(); |
| 1654 | dropLocalTableIfExists({create.database, create.table}); |
| 1655 | |
| 1656 | InterpreterCreateQuery interpreter(create_ast, getContext()); |
| 1657 | interpreter.execute(); |
| 1658 | } |
| 1659 | |
| 1660 | void ClusterCopier::dropLocalTableIfExists(const DatabaseAndTableName & table_name) const |
| 1661 | { |