Github user jkbradley commented on the pull request:

    https://github.com/apache/spark/pull/6181#issuecomment-102566119
  
    @yinxusen  I tried the Scala example but got this error:
    ```
    scala> val documentDF = sqlContext.createDataFrame(Seq(
         |   "Hi I heard about Spark".split(" "),
         |   "I wish Java could use case classes".split(" "),
         |   "Logistic regression models are neat".split(" ")
         | )).map(Tuple1.apply).toDF("text")
    <console>:20: error: overloaded method value createDataFrame with 
alternatives:
      [A <: Product](data: Seq[A])(implicit evidence$4: 
reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame <and>
      [A <: Product](rdd: org.apache.spark.rdd.RDD[A])(implicit evidence$3: 
reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame
     cannot be applied to (Seq[Array[String]])
           val documentDF = sqlContext.createDataFrame(Seq(
    ```
    Did these all run for you?
    
    The Java file needs the Apache license at the top.


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