Skip to content

Commit

Permalink
Code formatting and cosmetics to appease style-check
Browse files Browse the repository at this point in the history
  • Loading branch information
meisam committed Jun 10, 2016
1 parent 2ac3ed0 commit 12e4780
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ import java.io._

import scala.tools.nsc.Settings
import scala.tools.nsc.interpreter.{JPrintWriter, Results}
import scala.tools.nsc.settings.MutableSettings
import scala.util.{Failure, Success, Try}
import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.rdd.RDD
import org.apache.spark.repl.SparkIMain
import org.apache.spark.sql.SQLContext
import org.apache.spark.sql.hive.HiveContext
import org.json4s.{DefaultFormats, Extraction}
import org.json4s.JsonAST._
Expand Down Expand Up @@ -90,7 +88,8 @@ class SparkSqlInterpreter(conf: SparkConf) extends Interpreter {

sparkIMain.beQuietDuring {
sparkIMain.bind("sc", "org.apache.spark.SparkContext", sparkContext, List("""@transient"""))
sparkIMain.bind("hiveContext", "org.apache.spark.sql.hive.HiveContext", hiveContext, List("""@transient"""))
val hiveClassName: String = classOf[HiveContext].getCanonicalName
sparkIMain.bind("hiveContext", hiveClassName, hiveContext, List("""@transient"""))
sparkIMain.addImports("hiveContext.implicits._")
sparkIMain.addImports("org.apache.spark.sql.types._")
}
Expand Down

0 comments on commit 12e4780

Please sign in to comment.