Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-30566][BUILD] Iterator doesn't refer outer identifier named "i…
…terator" properly in Scala 2.13 ### What changes were proposed in this pull request? Renamed an identifier `iterator` to `iter` to avoid compile error with Scala 2.13. ### Why are the changes needed? As of Scala 2.13, scala.collection.Iterator has "iterator" method so if an inner class of Iterator means to refer an outer identifier named "iterator", it does not work as we think. I listed source files that can be affected by that change by `find . -name "*.scala" -exec grep -El "new .*Iterator\[.* +{" {} \;` As far as I confirmed util.Utils` is affected. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Existing tests. Closes apache#27275 from sarutak/fix-iterator-for-2.13. Authored-by: Kousuke Saruta <sarutak@oss.nttdata.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
- Loading branch information