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

    https://github.com/apache/spark/pull/4675#discussion_r24935321
  
    --- Diff: docs/ml-guide.md ---
    @@ -171,12 +171,12 @@ import org.apache.spark.sql.{Row, SQLContext}
     val conf = new SparkConf().setAppName("SimpleParamsExample")
     val sc = new SparkContext(conf)
     val sqlContext = new SQLContext(sc)
    -import sqlContext._
    +import sqlContext.implicits._
     
     // Prepare training data.
    -// We use LabeledPoint, which is a case class.  Spark SQL can convert RDDs 
of case classes
    -// into SchemaRDDs, where it uses the case class metadata to infer the 
schema.
    -val training = sparkContext.parallelize(Seq(
    +// We use LabeledPoint, which is a case class.  Spark SQL can convert RDDs 
of Java Beans
    --- End diff --
    
    This is under Scala context. `case classes` or `case class instances` may 
be better than `JavaBeans`.


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