Skip to content

Commit 5668bce

Browse files
committed
ok
1 parent 6e28b2e commit 5668bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storages/StorageMerge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ std::vector<ReadFromMerge::ChildPlan> ReadFromMerge::createChildrenPlans(SelectQ
638638
if (storage_metadata_snapshot->getColumns().empty())
639639
{
640640
/// (Assuming that view has empty list of columns iff it's parametrized.)
641-
if (storage->isView())
641+
if (storage->isView() && storage->as<StorageView>() && storage->as<StorageView>()->isParameterizedView())
642642
throw Exception(ErrorCodes::STORAGE_REQUIRES_PARAMETER, "Parametrized view can't be queried through a Merge table.");
643643
else
644644
throw Exception(ErrorCodes::LOGICAL_ERROR, "Table has no columns.");

0 commit comments

Comments
 (0)