We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e28b2e commit 5668bceCopy full SHA for 5668bce
src/Storages/StorageMerge.cpp
@@ -638,7 +638,7 @@ std::vector<ReadFromMerge::ChildPlan> ReadFromMerge::createChildrenPlans(SelectQ
638
if (storage_metadata_snapshot->getColumns().empty())
639
{
640
/// (Assuming that view has empty list of columns iff it's parametrized.)
641
- if (storage->isView())
+ if (storage->isView() && storage->as<StorageView>() && storage->as<StorageView>()->isParameterizedView())
642
throw Exception(ErrorCodes::STORAGE_REQUIRES_PARAMETER, "Parametrized view can't be queried through a Merge table.");
643
else
644
throw Exception(ErrorCodes::LOGICAL_ERROR, "Table has no columns.");
0 commit comments