Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/4387#discussion_r24145688
--- Diff:
repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoopInit.scala ---
@@ -127,7 +127,17 @@ private[repl] trait SparkILoopInit {
_sc
}
""")
+ command("""
+ @transient val sqlContext = {
+ val _sqlContext =
org.apache.spark.repl.Main.interp.createSQLContext()
+ println("SQLContext available as sqlContext.")
+ _sqlContext
+ }
+ """)
command("import org.apache.spark.SparkContext._")
+ command("import sqlContext._")
+ command("import org.apache.spark.sql.Dsl._")
+ command("import org.apache.spark.sql.types._")
--- End diff --
talked to @rxin and he was okay with importing the DSL, but let's leave out
types.
---
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]