Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/22113#discussion_r210462023
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileOperator.scala ---
@@ -70,7 +70,7 @@ private[hive] object OrcFileOperator extends Logging {
hdfsPath.getFileSystem(conf)
}
- listOrcFiles(basePath, conf).iterator.map { path =>
+ listOrcFiles(basePath, conf).view.map { path =>
--- End diff --
Do you mean `collectFirst` actually traverse `iterator` entirely?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]