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

Method dropAndCreateLocalTable

programs/copier/ClusterCopier.cpp:1651–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1649}
1650
1651void 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
1660void ClusterCopier::dropLocalTableIfExists(const DatabaseAndTableName & table_name) const
1661{

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected