-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-2219][SQL] Added support for the "add jar" command #2242
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
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.
I saw SetCommand takes the context as the parameter, as well as the other Commands in the file commands.scala, like:
case class SetCommand(
key: Option[String], value: Option[String], output: Seq[Attribute])(
@transient context: SQLContext)
Should we follow the same pattern? The default sqlContext will take value from a ThreadLocal variable, which probably a little different.
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.
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.
Yes, you should use the provide sqlContext. This will always be provided by the planner.
|
I saw people complaints the |
|
Cool, thanks for the suggestion for testing, will add a test case for this. |
|
ok to test |
|
QA tests have started for PR 2242 at commit
|
|
QA tests have finished for PR 2242 at commit
|
|
QA tests have started for PR 2242 at commit
|
|
QA tests have finished for PR 2242 at commit
|
|
Build failure caused by unrelated GraphX suite, maybe a GraphX regression, saw this multiple times this morning @rxin @ankurdave |
|
ok to test |
|
QA tests have started for PR 2242 at commit
|
|
QA tests have finished for PR 2242 at commit
|
|
Build failure caused by streaming suites. |
|
retest this please |
|
Rebase please :) |
|
QA tests have started for PR 2242 at commit
|
|
QA tests have finished for PR 2242 at commit
|
|
@marmbrus Rebased, this is also ready to go! |
|
Thanks! I've merged this to master. |
Adds logical and physical command classes for the "add jar" command. Note that this PR conflicts with and should be merged after apache#2215. Author: Cheng Lian <lian.cs.zju@gmail.com> Closes apache#2242 from liancheng/add-jar and squashes the following commits: e43a2f1 [Cheng Lian] Updates AddJar according to conventions introduced in apache#2215 b99107f [Cheng Lian] Added test case for ADD JAR command 095b2c7 [Cheng Lian] Also forward ADD JAR command to Hive 9be031b [Cheng Lian] Trims Jar path string 8195056 [Cheng Lian] Added support for the "add jar" command Conflicts: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveStrategies.scala sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/commands.scala sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
Adds logical and physical command classes for the "add jar" command.
Note that this PR conflicts with and should be merged after #2215.