Merge pull request #71929 from ClickHouse/fix-build-after-71179

Fix build with Clang-19 after #71179
This commit is contained in:
Konstantin Bogdanov 2024-11-15 08:24:25 +00:00 committed by GitHub
commit 98cd45153d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1959,7 +1959,7 @@ void InterpreterCreateQuery::throwIfTooManyEntities(ASTCreateQuery & create, Sto
entity_name, setting_name, num_limit, attached_count);
};
if (auto * replicated_storage = typeid_cast<StorageReplicatedMergeTree *>(storage.get()))
if (typeid_cast<StorageReplicatedMergeTree *>(storage.get()) != nullptr)
check_and_throw(ServerSetting::max_replicated_table_num_to_throw, CurrentMetrics::AttachedReplicatedTable, "max_replicated_table_num_to_throw", "replicated tables");
else if (create.is_dictionary)
check_and_throw(ServerSetting::max_dictionary_num_to_throw, CurrentMetrics::AttachedDictionary, "max_dictionary_num_to_throw", "dictionaries");

View File

@ -25,7 +25,7 @@ namespace DB
{
return {CurrentMetrics::AttachedDictionary};
}
if (auto * replicated_storage = typeid_cast<StorageReplicatedMergeTree *>(storage.get()))
if (typeid_cast<StorageReplicatedMergeTree *>(storage.get()) != nullptr)
{
return {CurrentMetrics::AttachedTable, CurrentMetrics::AttachedReplicatedTable};
}