You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/12/09 23:31:06 UTC
[GitHub] [spark] viirya commented on a change in pull request #26809:
[SPARK-30185][SQL] Implement Dataset.tail API
viirya commented on a change in pull request #26809: [SPARK-30185][SQL] Implement Dataset.tail API
URL: https://github.com/apache/spark/pull/26809#discussion_r355740148
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
##########
@@ -2770,6 +2770,18 @@ class Dataset[T] private[sql](
*/
def take(n: Int): Array[T] = head(n)
+ /**
+ * Returns the last `n` rows in the Dataset.
Review comment:
Is this `last` only making sense for ordered dataset?
Though `head` also refers to first rows, it can be seen as same as `limit`. For `last` it seems to be more related to an ordered dataset?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org