mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
dbms: correctly (I hope) determine PREWHERE dependencies for defaults [#METR-16589]
This commit is contained in:
parent
ea4f4420ba
commit
c4d1887a6f
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user