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

    https://github.com/apache/spark/pull/8573#discussion_r39213733
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/local/LocalNodeTest.scala
 ---
    @@ -17,13 +17,29 @@
     
     package org.apache.spark.sql.execution.local
     
    +import scala.reflect.runtime.universe.TypeTag
     import scala.util.control.NonFatal
     
     import org.apache.spark.SparkFunSuite
    -import org.apache.spark.sql.{DataFrame, Row}
    -import org.apache.spark.sql.test.SQLTestUtils
    +import org.apache.spark.rdd.RDD
    +import org.apache.spark.sql.{DataFrame, DataFrameHolder, Row}
    +import org.apache.spark.sql.test.{SharedSQLContext, SQLTestUtils}
     
    -class LocalNodeTest extends SparkFunSuite {
    +class LocalNodeTest extends SparkFunSuite with SharedSQLContext {
    +
    +  /**
    +   * Creates a DataFrame from an RDD of Product (e.g. case classes, 
tuples).
    +   */
    +  implicit def rddToDataFrameHolder[A <: Product : TypeTag](rdd: RDD[A]): 
DataFrameHolder = {
    +    DataFrameHolder(_sqlContext.createDataFrame(rdd))
    +  }
    +
    +  /**
    +   * Creates a DataFrame from a local Seq of Product.
    +   */
    +  implicit def localSeqToDataFrameHolder[A <: Product : TypeTag](data: 
Seq[A]): DataFrameHolder = {
    +    sqlContext.implicits.localSeqToDataFrameHolder(data)
    +  }
    --- End diff --
    
    I think with your latest code you can revert these changes


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

Reply via email to