dbms: correctly (I hope) determine PREWHERE dependencies for defaults [#METR-16589]

This commit is contained in:
Andrey Mironov 2015-06-10 17:49:38 +03:00
parent ea4f4420ba
commit c4d1887a6f

View File

@ -43,9 +43,7 @@ public:
{
pre_column_names = prewhere_actions->getRequiredColumns();
/// @todo somehow decide which injected columns belong to PREWHERE, optimizing reads
pre_column_names.insert(std::end(pre_column_names),
std::begin(injected_columns), std::end(injected_columns));
injectRequiredColumns(pre_column_names);
if (pre_column_names.empty())
pre_column_names.push_back(column_names[0]);