Experimenting

This commit is contained in:
achulkov2 2020-01-29 16:12:11 +03:00
parent f65b75ce5a
commit 61ff06be70

View File

@ -245,6 +245,8 @@ void DatabaseOnDisk::renameTable(
ASTPtr DatabaseOnDisk::getCreateTableQueryImpl(const Context & context, const String & table_name, bool throw_on_error) const
{
ASTPtr ast;
bool ht = tryGetTable(context, table_name) != nullptr;
std::cerr << "HAS_TABLE: " << ht << "\n";
auto table_metadata_path = getObjectMetadataPath(table_name);
ast = getCreateQueryFromMetadata(context, table_metadata_path, throw_on_error);