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

    https://github.com/apache/spark/pull/4387#discussion_r24145690
  
    --- Diff: 
repl/scala-2.10/src/main/scala/org/apache/spark/repl/SparkILoop.scala ---
    @@ -1016,6 +1020,13 @@ class SparkILoop(
         sparkContext
       }
     
    +  @DeveloperApi
    +  def createSQLContext(): SQLContext = {
    +    sqlContext = new SQLContext(sparkContext)
    --- End diff --
    
    @pwendell I guess your idea is to check whether hive is built with spark.
    We need check HiveContext class exists or not in class loader.
    1. If it does.  we provide HiveContext to be `sqlContext` as default 
context (hive dialect)?
    2. If doesn't.  we provide o.a.s.s.SQLContext as default context.(sql 
dialect)?
    3. Or do we need provide both `sqlContext` and `hiveContext` in spark 
shell, user can choose what they like ? 
    Sorry if I'm wrong.


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