Skip to content
Snippets Groups Projects
Commit bc54a14b authored by Wenchen Fan's avatar Wenchen Fan
Browse files

[SPARK-18947][SQL] SQLContext.tableNames should not call Catalog.listTables


## What changes were proposed in this pull request?

It's a huge waste to call `Catalog.listTables` in `SQLContext.tableNames`, which only need the table names, while `Catalog.listTables` will get the table metadata for each table name.

## How was this patch tested?

N/A

Author: Wenchen Fan <wenchen@databricks.com>

Closes #16352 from cloud-fan/minor.

(cherry picked from commit b7650f11)
Signed-off-by: default avatarWenchen Fan <wenchen@databricks.com>
parent 063a98e5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment