Skip to content

Commit

Permalink
Merge pull request #60708 from azat/fix-invalid-storage-metadata-error
Browse files Browse the repository at this point in the history
Fix "Invalid storage definition in metadata file" for parameterized views
  • Loading branch information
alexey-milovidov committed Mar 3, 2024
2 parents 0208828 + eb711bd commit fa72431
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Databases/DatabaseOnDisk.cpp
Expand Up @@ -83,7 +83,13 @@ std::pair<String, StoragePtr> createTableFromAST(
ColumnsDescription columns;
ConstraintsDescription constraints;

if (!ast_create_query.is_dictionary)
bool has_columns = true;
if (ast_create_query.is_dictionary)
has_columns = false;
if (ast_create_query.isParameterizedView())
has_columns = false;

if (has_columns)
{
/// We do not directly use `InterpreterCreateQuery::execute`, because
/// - the database has not been loaded yet;
Expand Down

0 comments on commit fa72431

Please sign in to comment.