Fix fast test

This commit is contained in:
Alexey Milovidov 2021-07-12 18:19:49 +03:00
parent f0ddbb1ca5
commit e0ae04297a

View File

@ -399,7 +399,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
view = nullptr;
}
if (try_move_to_prewhere && storage && query.where() && !query.prewhere())
if (try_move_to_prewhere && storage && storage->supportsPrewhere() && query.where() && !query.prewhere())
{
/// PREWHERE optimization: transfer some condition from WHERE to PREWHERE if enabled and viable
if (const auto & column_sizes = storage->getColumnSizes(); !column_sizes.empty())