-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-6694][SQL]SparkSQL CLI must be able to specify an option --database on the command line. #5345
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
|
cc @liancheng Jenkins, test this please. |
|
@adachij2002 Would you mind to add a test case for this in |
|
@liancheng Thanks for your comment. |
|
Noticed that the permission is changed from 644 to 755:
Could you tell me why? |
|
@WangTaoTheTonic Sorry, I edited that file on Windows. |
|
ok to test |
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.
Why did this need to be moved out?
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 need this test transactional.
- create database for test db by SparkSQL CLI.
- test --database option by SparkSQL command line.
But the runCliWithin method will delete schema information.
I modified to delete schema information in before/after of the test method.
|
Test build #30099 has finished for PR 5345 at commit
|
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.
Please either use
def runCliWithin(
timeout: FiniteDuration,
extraArgs: Seq[String] = Seq.empty)(
queriesAndExpectedAnswers: (String, String)*): Unit = {
...
}or
def runCliWithin
(timeout: FiniteDuration, extraArgs: Seq[String] = Seq.empty)
(queriesAndExpectedAnswers: (String, String)*): Unit = {
...
}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.
@liancheng I fixed it according to your suggestion.
|
retest this please. |
|
The last Scala style check failure should be irrelevant. Left a few minor styling comments. Otherwise this LGTM pending Jenkins. Thanks for working on this! |
|
Test build #30167 has finished for PR 5345 at commit
|
|
Test build #30392 has finished for PR 5345 at commit
|
|
Test build #30405 has finished for PR 5345 at commit
|
|
Thanks for working on this! Merging to master. |
SparkSQL CLI has an option --database as follows.
But, the option --database is ignored.