mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Update PredicateExpressionsOptimizer.cpp
This commit is contained in:
parent
8f3c097c1b
commit
3022c4a759
@ -138,10 +138,10 @@ bool PredicateExpressionsOptimizer::allowPushDown(
|
||||
const std::vector<IdentifierWithQualifier> & dependencies,
|
||||
OptimizeKind & optimize_kind)
|
||||
{
|
||||
if (!subquery ||
|
||||
(!settings.allow_push_predicate_to_final_subquery && subquery->final()) ||
|
||||
subquery->limitBy() || subquery->limitLength() ||
|
||||
subquery->with())
|
||||
if (!subquery
|
||||
|| (!settings.enable_optimize_predicate_expression_to_final_subquery && subquery->final())
|
||||
|| subquery->limitBy() || subquery->limitLength()
|
||||
|| subquery->with())
|
||||
return false;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user