Revert "Strange fix, how it was possible earlier?"

This reverts commit 8d20644c99.
This commit is contained in:
alesapin 2020-04-27 17:17:12 +03:00
parent 8d20644c99
commit e85b50c911

View File

@ -246,9 +246,9 @@ MergeTreeReadTaskColumns getReadTaskColumns(const MergeTreeData & storage, const
if (check_columns)
{
const NamesAndTypesList & columns = storage.getColumns().getAll();
result.pre_columns = columns.addTypes(pre_column_names);
result.columns = columns.addTypes(column_names);
const NamesAndTypesList & physical_columns = storage.getColumns().getAllPhysical();
result.pre_columns = physical_columns.addTypes(pre_column_names);
result.columns = physical_columns.addTypes(column_names);
}
else
{