mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
Fix StorageMaterializedView::isRemote
This commit is contained in:
parent
8449e4c7b7
commit
c9a2a4922d
@ -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)
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user