Fix StorageMaterializedView::isRemote

This commit is contained in:
vdimir 2023-10-16 15:17:55 +00:00
parent 8449e4c7b7
commit c9a2a4922d
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 8 additions and 0 deletions

View File

@ -478,6 +478,13 @@ ActionLock StorageMaterializedView::getActionLock(StorageActionBlockType type)
return ActionLock{};
}
bool StorageMaterializedView::isRemote() const
{
if (auto table = tryGetTargetTable())
return table->isRemote();
return false;
}
void registerStorageMaterializedView(StorageFactory & factory)
{
factory.registerStorage("MaterializedView", [](const StorageFactory::Arguments & args)

View File

@ -22,6 +22,7 @@ public:
std::string getName() const override { return "MaterializedView"; }
bool isView() const override { return true; }
bool isRemote() const override;
bool hasInnerTable() const { return has_inner_table; }