[
https://issues.apache.org/jira/browse/ARROW-4769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661791#comment-17661791
]
Rok Mihevc commented on ARROW-4769:
-----------------------------------
This issue has been migrated to [issue
#21288|https://github.com/apache/arrow/issues/21288] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [Rust] Improve array limit function where max records > len
> -----------------------------------------------------------
>
> Key: ARROW-4769
> URL: https://issues.apache.org/jira/browse/ARROW-4769
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Rust
> Affects Versions: 0.12.0
> Reporter: Neville Dipale
> Assignee: Neville Dipale
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 0.13.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When we have an array of n records, and we want to take a limit that's higher
> or equat to n, we still iterate through the array values and create a new
> array.
> We could improve this by returning a copy of the array as-is.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)