Skip to content

Commit d0e8ec2

Browse files
committed
fix prewhere population
1 parent 23c4bae commit d0e8ec2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Storages/MergeTree/MergeTreeSelectProcessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ PrewhereExprInfo MergeTreeSelectProcessor::getPrewhereActions(
155155
prewhere_actions.steps.emplace_back(std::make_shared<PrewhereExprStep>(std::move(row_level_filter_step)));
156156
}
157157

158-
if (!enable_multiple_prewhere_read_steps ||
159-
!tryBuildPrewhereSteps(prewhere_info, actions_settings, prewhere_actions, force_short_circuit_execution))
158+
if (prewhere_info &&
159+
(!enable_multiple_prewhere_read_steps || !tryBuildPrewhereSteps(prewhere_info, actions_settings, prewhere_actions, force_short_circuit_execution)))
160160
{
161161
PrewhereExprStep prewhere_step
162162
{

0 commit comments

Comments
 (0)