beliefer commented on code in PR #35975:
URL: https://github.com/apache/spark/pull/35975#discussion_r848141914
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -1846,6 +1847,19 @@ object EliminateLimits extends Rule[LogicalPlan] {
}
}
+/**
+ * Rewrite [[Offset]] as [[Limit]] or combines two adjacent [[Offset]]
operators into one,
+ * merging the expressions into one single expression.
+ */
+object RewriteOffsets extends Rule[LogicalPlan] {
+ def apply(plan: LogicalPlan): LogicalPlan = plan transform {
+ case GlobalLimit(le, Offset(oe, grandChild)) =>
Review Comment:
I don't get the mean. Why need mention it?
--
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]