GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/16579
[SPARK-19218][SQL] SET command should show a result sorted by key
## What changes were proposed in this pull request?
Currently, `SET` command shows unsorted result. We had better show a sorted
result for UX. Also, this is compatible with Hive.
**BEFORE**
```
scala> sql("set").show(false)
...
|spark.driver.host |10.22.16.140
|
|spark.driver.port |63893
|
|spark.repl.class.uri |spark://10.22.16.140:63893/classes
|
...
|spark.app.name |Spark shell
|
|spark.driver.memory |4G
|
|spark.executor.id |driver
|
|spark.submit.deployMode |client
|
|spark.master |local[*]
|
|spark.home |/Users/dhyun/spark
|
|spark.sql.catalogImplementation|hive
|
|spark.app.id |local-1484333618945
|
```
**AFTER**
```
scala> sql("set").show(false)
...
|spark.app.id |local-1484333925649
|
|spark.app.name |Spark shell
|
|spark.driver.host |10.22.16.140
|
|spark.driver.memory |4G
|
|spark.driver.port |64994
|
|spark.executor.id |driver
|
|spark.jars |
|
|spark.master |local[*]
|
|spark.repl.class.uri |spark://10.22.16.140:64994/classes
|
|spark.sql.catalogImplementation|hive
|
|spark.submit.deployMode |client
|
```
## How was this patch tested?
Jenkins with a new test case.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-19218
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16579.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16579
----
commit 052a2f489c8e7e4889a64a673fdce5df2422f2cb
Author: Dongjoon Hyun <[email protected]>
Date: 2017-01-05T00:28:16Z
[SPARK-19218][SQL] SET command should show a sorted result
----
---
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]
