Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Feb 5, 2015
1 parent edd296b commit 9d96606
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ trait ParquetTest {
val sqlContext: SQLContext

import sqlContext._
import sqlContext.implicits._

protected def configuration = sparkContext.hadoopConfiguration

Expand Down Expand Up @@ -89,8 +88,9 @@ trait ParquetTest {
protected def withParquetFile[T <: Product: ClassTag: TypeTag]
(data: Seq[T])
(f: String => Unit): Unit = {
import sqlContext.implicits._
withTempPath { file =>
implicits.createDataFrame(sparkContext.parallelize(data)).saveAsParquetFile(file.getCanonicalPath)
sparkContext.parallelize(data).saveAsParquetFile(file.getCanonicalPath)
f(file.getCanonicalPath)
}
}
Expand Down

0 comments on commit 9d96606

Please sign in to comment.