diff options
author | bomeng <bmeng@us.ibm.com> | 2016-06-14 18:35:29 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-06-14 18:35:29 -0700 |
commit | 42a28caf1001244d617b9256de196129348f2fef (patch) | |
tree | 17bf44ac8aca8881b69c855f801fa63abad099c1 /mllib | |
parent | 0bd86c0fe4ebf05d817632a8665a02b379fa3cae (diff) | |
download | spark-42a28caf1001244d617b9256de196129348f2fef.tar.gz spark-42a28caf1001244d617b9256de196129348f2fef.tar.bz2 spark-42a28caf1001244d617b9256de196129348f2fef.zip |
[SPARK-15952][SQL] fix "show databases" ordering issue
## What changes were proposed in this pull request?
Two issues I've found for "show databases" command:
1. The returned database name list was not sorted, it only works when "like" was used together; (HIVE will always return a sorted list)
2. When it is used as sql("show databases").show, it will output a table with column named as "result", but for sql("show tables").show, it will output the column name as "tableName", so I think we should be consistent and use "databaseName" at least.
## How was this patch tested?
Updated existing test case to test its ordering as well.
Author: bomeng <bmeng@us.ibm.com>
Closes #13671 from bomeng/SPARK-15952.
Diffstat (limited to 'mllib')
0 files changed, 0 insertions, 0 deletions