GitHub user andrewor14 opened a pull request:

    https://github.com/apache/spark/pull/13015

    [SPARK-15234][SQL] Fix spark.catalog.listDatabases.show()

    ## What changes were proposed in this pull request?
    
    Before:
    ```
    scala> spark.catalog.listDatabases.show()
    +--------------------+-----------+-----------+
    |                name|description|locationUri|
    +--------------------+-----------+-----------+
    |Database[name='de...|
    |Database[name='my...|
    |Database[name='so...|
    +--------------------+-----------+-----------+
    ```
    
    After:
    ```
    +-------+--------------------+--------------------+
    |   name|         description|         locationUri|
    +-------+--------------------+--------------------+
    |default|Default Hive data...|file:/user/hive/w...|
    |  my_db|  This is a database|file:/Users/andre...|
    |some_db|                    |file:/private/var...|
    +-------+--------------------+--------------------+
    ```
    
    ## How was this patch tested?
    
    New test in `CatalogSuite`


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andrewor14/spark catalog-show

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13015.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 #13015
    
----
commit 26ec78741b2f8377fbb7f3361986fb171ae813e9
Author: Andrew Or <[email protected]>
Date:   2016-05-09T22:29:43Z

    Show constructor params in catalog classes

commit c9e364fdef9785ed093ea60655de3f01653ae773
Author: Andrew Or <[email protected]>
Date:   2016-05-09T22:41:17Z

    Add a test

----


---
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]

Reply via email to