mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #71929 from ClickHouse/fix-build-after-71179
Fix build with Clang-19 after #71179
This commit is contained in:
commit
98cd45153d
@ -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");
|
||||
|
@ -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};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user