Skip to content

Commit eb711bd

Browse files
committed
Fix "Invalid storage definition in metadata file" for parameterized views
Signed-off-by: Azat Khuzhin <[email protected]>
1 parent a1d1f76 commit eb711bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Databases/DatabaseOnDisk.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ std::pair<String, StoragePtr> createTableFromAST(
8383
ColumnsDescription columns;
8484
ConstraintsDescription constraints;
8585

86-
if (!ast_create_query.is_dictionary)
86+
bool has_columns = true;
87+
if (ast_create_query.is_dictionary)
88+
has_columns = false;
89+
if (ast_create_query.isParameterizedView())
90+
has_columns = false;
91+
92+
if (has_columns)
8793
{
8894
/// We do not directly use `InterpreterCreateQuery::execute`, because
8995
/// - the database has not been loaded yet;

0 commit comments

Comments
 (0)