cloud-fan commented on a change in pull request #34738:
URL: https://github.com/apache/spark/pull/34738#discussion_r758929999
##########
File path:
sql/catalyst/src/main/java/org/apache/spark/sql/connector/read/SupportsPushDownLimit.java
##########
@@ -33,4 +34,9 @@
* Pushes down LIMIT to the data source.
*/
boolean pushLimit(int limit);
+
+ /**
+ * Pushes down top N to the data source.
+ */
+ boolean pushTopN(SortValue[] orders, int limit);
Review comment:
or probably we should have a new interface `SupportsPushDownTopN`, as
Spark can either push down limit, or top n, but not both.
--
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]