-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14828][SQL] Start SparkSession in REPL instead of SQLContext #12589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I think there was a suggestion from @marmbrus to just name this "spark". Would it cause any problems because it conflicts with the package name? |
|
OK, I like spark better too. Let's try it out. |
|
Yeah, if there are problems we don't have to do that, but |
|
I don't see any problems off the top of my head. The only collision is when people do |
|
Test build #56614 has finished for PR 12589 at commit
|
|
Test build #56616 has finished for PR 12589 at commit
|
|
LGTM - let's see if we run into issues in the future with this. |
| } | ||
| sqlContext | ||
| } | ||
| def createSparkSession(): SparkSession = Main.createSparkSession() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does repl/scala-2.10/src/main/scala/org/apache/spark/repl/Main.scala have createSparkSession?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, is there a way to do this without duplicating code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not very sure. How about we still duplicate the code for now?
|
Test build #56720 has finished for PR 12589 at commit
|
|
Test build #56905 has finished for PR 12589 at commit
|
## What changes were proposed in this pull request? This removes the class `HiveContext` itself along with all code usages associated with it. The bulk of the work was already done in #12485. This is mainly just code cleanup and actually removing the class. Note: A couple of things will break after this patch. These will be fixed separately. - the python HiveContext - all the documentation / comments referencing HiveContext - there will be no more HiveContext in the REPL (fixed by #12589) ## How was this patch tested? No change in functionality. Author: Andrew Or <[email protected]> Closes #12585 from andrewor14/delete-hive-context.
|
Test build #2872 has finished for PR 12589 at commit
|
|
Test build #2873 has finished for PR 12589 at commit
|
|
Test build #2874 has finished for PR 12589 at commit
|
|
Test build #56919 has finished for PR 12589 at commit
|
|
Thanks - merging in master. |
|
should this go to pyspark and sparkR shell as well? |
|
it'll be there later |
What changes were proposed in this pull request?
Hive things are loaded lazily.
How was this patch tested?
Manual.