Github user zjffdu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9595#discussion_r50216785
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/source/libsvm/LibSVMRelationSuite.scala
 ---
    @@ -79,4 +79,23 @@ class LibSVMRelationSuite extends SparkFunSuite with 
MLlibTestSparkContext {
         val v = row1.getAs[SparseVector](1)
         assert(v == Vectors.sparse(100, Seq((0, 1.0), (2, 2.0), (4, 3.0))))
       }
    +
    +  test("write libsvm data and read it again") {
    +    val df = sqlContext.read.format("libsvm").load(path)
    +    val writepath = path + "_2"
    +    df.write.save(writepath)
    +
    +    val df2 = sqlContext.read.format("libsvm").load(writepath)
    +    val row1 = df.first()
    --- End diff --
    
    This is bug of test code, I am verifying df rather than df2 so that the 
test passed


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to