Skip to content

Commit d028426

Browse files
authored
Update TreeRewriter.cpp
1 parent 24fa706 commit d028426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Interpreters/TreeRewriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,8 @@ bool TreeRewriterResult::collectUsedColumns(const ASTPtr & query, bool is_select
12141214
}
12151215
}
12161216

1217-
/// Check for subcolumns in unknown required columns.
1218-
if (!unknown_required_source_columns.empty() && (!storage || storage->supportsSubcolumns()))
1217+
/// Check for dynamic subcolumns in unknown required columns.
1218+
if (!unknown_required_source_columns.empty())
12191219
{
12201220
for (const NameAndTypePair & pair : source_columns_ordinary)
12211221
{

0 commit comments

Comments
 (0)