You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Bo Meng (JIRA)" <ji...@apache.org> on 2016/06/15 23:01:14 UTC

[jira] [Created] (SPARK-15978) Some improvement of "Show Tables"

Bo Meng created SPARK-15978:
-------------------------------

             Summary: Some improvement of "Show Tables"
                 Key: SPARK-15978
                 URL: https://issues.apache.org/jira/browse/SPARK-15978
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Bo Meng
            Priority: Minor


I've found some minor issues in "show tables" command:
1. In the SessionCatalog.scala, listTables(db: String) method will call listTables(formatDatabaseName(db), "*") to list all the tables for certain db, but in the method listTables(db: String, pattern: String), this db name is formatted once more. So I think we should remove formatDatabaseName() in the caller.
2. I suggest to add sort to listTables(db: String) in InMemoryCatalog.scala, just like listDatabases().

I will make a PR shortly. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org