Skip to content

Commit cede195

Browse files
Backport #60708 to 23.8: Fix "Invalid storage definition in metadata file" for parameterized views
1 parent 724a45f commit cede195

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
@@ -82,7 +82,13 @@ std::pair<String, StoragePtr> createTableFromAST(
8282
ColumnsDescription columns;
8383
ConstraintsDescription constraints;
8484

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

0 commit comments

Comments
 (0)