AssHero opened a new pull request, #2823:
URL: https://github.com/apache/arrow-datafusion/pull/2823
# Which issue does this PR close?
Closes #2822
# Rationale for this change
For logical plans, if upper offset is equal or greater than current's limit,
replaces with an [LogicalPlan::EmptyRelation].
For this query: select * from (select * from t1 limit 2 offset 2 ) a order
by a.column1 offset 2, we get
the Logical Plan:
----------------Limit: skip=2, fetch=None
-----------------Sort: #a.column1 ASC NULLS LAST
-------------------Projection: #a.column1
---------------------EmptyRelation
# What changes are included in this PR?
add rules to eliminate multi limit-offset nodes to emptyRelation in
datafusion/optimizer/src/eliminate_limit.rs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]