cloud-fan commented on code in PR #36295:
URL: https://github.com/apache/spark/pull/36295#discussion_r874589600


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanRelationPushDown.scala:
##########
@@ -419,6 +420,72 @@ object V2ScanRelationPushDown extends Rule[LogicalPlan] 
with PredicateHelper wit
       }
   }
 
+  private def pushDownOffset(

Review Comment:
   let's have a single `pushDownLimitAndOffset`. It should be simpler to the 
planner rule, and we need to match different kind of query plans: LIMIT only, 
OFFSET only, LIMIT + OFFSET, OFFSET + LIMIT, SORT + LIMT, SORT + LIMIT + 
OFFSET, etc.



##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanRelationPushDown.scala:
##########
@@ -419,6 +420,72 @@ object V2ScanRelationPushDown extends Rule[LogicalPlan] 
with PredicateHelper wit
       }
   }
 
+  private def pushDownOffset(

Review Comment:
   let's have a single `pushDownLimitAndOffset`. It should be similar to the 
planner rule, and we need to match different kind of query plans: LIMIT only, 
OFFSET only, LIMIT + OFFSET, OFFSET + LIMIT, SORT + LIMT, SORT + LIMIT + 
OFFSET, etc.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to