You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2022/05/11 03:08:00 UTC
[jira] [Resolved] (SPARK-39137) Use slice instead of take and drop
[ https://issues.apache.org/jira/browse/SPARK-39137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean R. Owen resolved SPARK-39137.
----------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 36494
[https://github.com/apache/spark/pull/36494]
> Use slice instead of take and drop
> ----------------------------------
>
> Key: SPARK-39137
> URL: https://issues.apache.org/jira/browse/SPARK-39137
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Yang Jie
> Assignee: Yang Jie
> Priority: Trivial
> Fix For: 3.4.0
>
>
> {code:java}
> seq.drop(n).take(m) -> seq.slice(n, n + m)
> seq.take(m).drop(n) -> seq.slice(n, m) {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org