File tree 1 file changed +1
-10
lines changed
datafusion/physical-optimizer/src
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -246,16 +246,7 @@ pub fn pushdown_limit_helper(
246
246
Ok ( ( Transformed :: no ( pushdown_plan) , global_state) )
247
247
}
248
248
} else {
249
- // Add fetch or a `LimitExec`:
250
- // If the plan's children have limit and the child's limit < parent's limit, we shouldn't change the global state to true,
251
- // because the children limit will be overridden if the global state is changed.
252
- if !pushdown_plan
253
- . children ( )
254
- . iter ( )
255
- . any ( |& child| extract_limit ( child) . is_some ( ) )
256
- {
257
- global_state. satisfied = true ;
258
- }
249
+ global_state. satisfied = true ;
259
250
pushdown_plan = if let Some ( plan_with_fetch) = maybe_fetchable {
260
251
if global_skip > 0 {
261
252
add_global_limit ( plan_with_fetch, global_skip, Some ( global_fetch) )
You can’t perform that action at this time.
0 commit comments