Skip to content

Commit

Permalink
remove eliminate local limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Nov 14, 2020
1 parent 314cb1e commit c167a0d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1464,8 +1464,6 @@ object EliminateLimits extends Rule[LogicalPlan] {
def apply(plan: LogicalPlan): LogicalPlan = plan transformDown {
case Limit(l, child) if canEliminate(l, child.maxRows) =>
child
case LocalLimit(l, child) if canEliminate(l, child.maxRows) =>
child

case GlobalLimit(le, GlobalLimit(ne, grandChild)) =>
GlobalLimit(Least(Seq(ne, le)), grandChild)
Expand Down

0 comments on commit c167a0d

Please sign in to comment.