GitHub user dilipbiswal opened a pull request: https://github.com/apache/spark/pull/11991
[SPARK-14184][SQL] Support native execution of SHOW DATABASE command and fix SHOW TABLE to use table identifier pattern ## What changes were proposed in this pull request? This PR addresses the following 1. Supports native execution of SHOW DATABASES command 2. Fixes SHOW TABLES to apply the identifier_with_wildcards pattern if supplied. SHOW TABLE syntax ``` SHOW TABLES [IN database_name] ['identifier_with_wildcards']; ``` SHOW DATABASES syntax ``` SHOW (DATABASES|SCHEMAS) [LIKE 'identifier_with_wildcards']; ``` ## How was this patch tested? Tests added in SQLQuerySuite (both hive and sql contexts) and DDLCommandSuite Note: Since the table name pattern was not working , tests are added in both SQLQuerySuite to verify the application of the table pattern. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dilipbiswal/spark dkb_show_database Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/11991.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 #11991 ---- commit 31cd3c0b0a40f39749145ea98e467176f178c6ba Author: Dilip Biswal <dbis...@us.ibm.com> Date: 2016-03-27T22:54:03Z [SPARK-14184] Support native execution of SHOW DATABASE command and fix SHOW TABLE to use table identifier pattern ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org