[
https://issues.apache.org/jira/browse/SPARK-39928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean R. Owen resolved SPARK-39928.
----------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 37353
[https://github.com/apache/spark/pull/37353]
> Optimize Utils.getIteratorSize for Scala 2.13 refer to IterableOnceOps.size
> ---------------------------------------------------------------------------
>
> Key: SPARK-39928
> URL: https://issues.apache.org/jira/browse/SPARK-39928
> Project: Spark
> Issue Type: Sub-task
> Components: Spark Core
> Affects Versions: 3.4.0
> Reporter: Yang Jie
> Assignee: Yang Jie
> Priority: Minor
> Fix For: 3.4.0
>
>
> {{Utils.getIteratorSize}} is slightly slower than {{Iterator.size}} when
> using Scala 2.13, but it seems that we can't call {{Iterator.size}} directly,
> because {{Utils.getIteratorSize}} method returns {{Long}} type data, using
> {{Iterator.size}} directly can't ensure that overflow will not occur.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]