-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14819] [SQL] Improve SET / SET -v command #12583
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
|
Test build #56582 has finished for PR 12583 at commit
|
|
You might need to rebase this in a bit because i'm refactoring all of these quite heavily for Spark 2.0. |
| } | ||
|
|
||
| test("set / set -v") { | ||
| checkExistence(sql("set"), true, "env:", "system:") |
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.
can we add a test case that checks the value of SPARK_TESTING?
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.
SPARK_TESTING is not in sys.env nor sys.props while running the test cases. Any suggestions to add the test cases for that?
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.
Found out that current test cases SQLQuerySuite and HiveQuerySuite have intensive test coverage for SET command.
|
Test build #56585 has finished for PR 12583 at commit
|
|
Test build #56603 has finished for PR 12583 at commit
|
|
Test build #56636 has finished for PR 12583 at commit
|
|
Test build #56651 has finished for PR 12583 at commit
|
|
Test build #56653 has finished for PR 12583 at commit
|
|
@bomeng while you are at this, do you mind implementing https://issues.apache.org/jira/browse/SPARK-14806 together? Should be pretty trivial. Thanks. |
|
Test build #56688 has finished for PR 12583 at commit
|
|
Hi, @bomeng . |
| (keyValueOutput, runFunc) | ||
|
|
||
| // Queries all properties along with their default values and docs that are defined in the | ||
| // SQLConf of the sqlContext. |
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.
We should update the comment regarding the system environment properties.
| (keyValueOutput, runFunc) | ||
|
|
||
| // (In Hive, "SET" returns all changed properties while "SET -v" returns all properties.) | ||
| // Queries all key-value pairs that are set in the SQLConf of the sqlContext. |
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.
Same.
| override def run(sqlContext: SQLContext): Seq[Row] = runFunc(sqlContext) | ||
|
|
||
| /** | ||
| * get the system environment properties as a sequence |
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.
Nit: "get" -> "Gets", "as a sequence" -> "as a sequence of rows".
|
Hmm. This PR seems to be stale. Actually, what I wanted was a sorted result of |
|
I made another #16579 for |
|
@dongjoon-hyun, then, do you mind if I ask if this PR is not useful in favour of #16579? |
|
Hi, @bomeng , do you have something to refresh here? |
## What changes were proposed in this pull request? This PR proposes to close stale PRs. What I mean by "stale" here includes that there are some review comments by reviewers but the author looks inactive without any answer to them more than a month. I left some comments roughly a week ago to ping and the author looks still inactive in these PR below These below includes some PR suggested to be closed and a PR against another branch which seems obviously inappropriate. Given the comments in the last three PRs below, they are probably worth being taken over by anyone who is interested in it. Closes apache#7963 Closes apache#8374 Closes apache#11192 Closes apache#11374 Closes apache#11692 Closes apache#12243 Closes apache#12583 Closes apache#12620 Closes apache#12675 Closes apache#12697 Closes apache#12800 Closes apache#13715 Closes apache#14266 Closes apache#15053 Closes apache#15159 Closes apache#15209 Closes apache#15264 Closes apache#15267 Closes apache#15871 Closes apache#15861 Closes apache#16319 Closes apache#16324 Closes apache#16890 Closes apache#12398 Closes apache#12933 Closes apache#14517 ## How was this patch tested? N/A Author: hyukjinkwon <gurwls223@gmail.com> Closes apache#16937 from HyukjinKwon/stale-prs-close.
What changes were proposed in this pull request?
Currently
SETandSET -vcommands are similar to HiveSETcommand except the following difference:SETandSET -v, in addition to the Hive related properties, it will also list all the system properties and environment properties, which is very useful in some cases.This JIRA is trying to make the current
SETcommand more consistent to Hive output.How was this patch tested?
Current test cases SQLQuerySuite and HiveQuerySuite should have enough test coverage.