mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #29237 from CurtizJ/better-logging
Better diagnostic in ReplicatedMergeTree
This commit is contained in:
commit
258ce2436a
@ -961,7 +961,9 @@ void StorageReplicatedMergeTree::checkTableStructure(const String & zookeeper_pr
|
||||
const ColumnsDescription & old_columns = metadata_snapshot->getColumns();
|
||||
if (columns_from_zk != old_columns)
|
||||
{
|
||||
throw Exception("Table columns structure in ZooKeeper is different from local table structure", ErrorCodes::INCOMPATIBLE_COLUMNS);
|
||||
throw Exception(ErrorCodes::INCOMPATIBLE_COLUMNS,
|
||||
"Table columns structure in ZooKeeper is different from local table structure. Local columns:\n"
|
||||
"{}\nZookeeper columns:\n{}", old_columns.toString(), columns_from_zk.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user