mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
Extend assertion in buildPushingToViewsChain() to respect is_detached
Follow-up for: #45566 (@tavplubix) Refs: #43161 (@AlfVII) Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
ff137721fb
commit
71286e779e
@ -310,8 +310,8 @@ Chain buildPushingToViewsChain(
|
|||||||
|
|
||||||
if (lock == nullptr)
|
if (lock == nullptr)
|
||||||
{
|
{
|
||||||
// In case the materialized view is dropped at this point, we register a warning and ignore it
|
// In case the materialized view is dropped/detached at this point, we register a warning and ignore it
|
||||||
assert(materialized_view->is_dropped);
|
assert(materialized_view->is_dropped || materialized_view->is_detached);
|
||||||
LOG_WARNING(
|
LOG_WARNING(
|
||||||
&Poco::Logger::get("PushingToViews"), "Trying to access table {} but it doesn't exist", view_id.getFullTableName());
|
&Poco::Logger::get("PushingToViews"), "Trying to access table {} but it doesn't exist", view_id.getFullTableName());
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user