Github user liancheng commented on a diff in the pull request: https://github.com/apache/spark/pull/11509#discussion_r55213849 --- Diff: mllib/src/test/scala/org/apache/spark/ml/source/libsvm/LibSVMRelationSuite.scala --- @@ -88,7 +88,8 @@ class LibSVMRelationSuite extends SparkFunSuite with MLlibTestSparkContext { val df = sqlContext.read.format("libsvm").load(path) val tempDir2 = Utils.createTempDir() val writepath = tempDir2.toURI.toString - df.write.format("libsvm").mode(SaveMode.Overwrite).save(writepath) + // TODO: Remove requirement to coalesce by supporting mutiple reads. + df.coalesce(1).write.format("libsvm").mode(SaveMode.Overwrite).save(writepath) --- End diff -- Same here. What does "multiple reads" mean here and why `coalesce(1)` is required? `LibSVMRelation` uses `textFiles` to read LibSVM files under the hood, so I'd assume that it can read from multiple part-files?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org