mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Merge pull request #29857 from azat/system-tables-diff-check
Fix system tables recreation check (fails to detect changes in enum values)
This commit is contained in:
commit
651c725595
@ -527,7 +527,7 @@ void SystemLog<LogElement>::prepareTable()
|
|||||||
auto alias_columns = LogElement::getNamesAndAliases();
|
auto alias_columns = LogElement::getNamesAndAliases();
|
||||||
auto current_query = InterpreterCreateQuery::formatColumns(ordinary_columns, alias_columns);
|
auto current_query = InterpreterCreateQuery::formatColumns(ordinary_columns, alias_columns);
|
||||||
|
|
||||||
if (old_query->getTreeHash() != current_query->getTreeHash())
|
if (serializeAST(*old_query) != serializeAST(*current_query))
|
||||||
{
|
{
|
||||||
/// Rename the existing table.
|
/// Rename the existing table.
|
||||||
int suffix = 0;
|
int suffix = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user