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

    https://github.com/apache/spark/pull/8507#discussion_r38373447
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/regression/impl/GLMRegressionModel.scala
 ---
    @@ -57,10 +57,12 @@ private[regression] object GLMRegressionModel {
           sc.parallelize(Seq(metadata), 
1).saveAsTextFile(Loader.metadataPath(path))
     
           // Create Parquet data.
    -      val data = Data(weights, intercept)
    -      val dataRDD: DataFrame = sc.parallelize(Seq(data), 1).toDF()
    -      // TODO: repartition with 1 partition after SPARK-5532 gets fixed
    -      dataRDD.write.parquet(Loader.dataPath(path))
    +      val dataRDD = sc.parallelize(Seq(Row(weights, intercept)), 1)
    +      val schema = StructType(
    --- End diff --
    
    Make private class val


---
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