Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-30517][SQL] Support SHOW TABLES EXTENDED #27214

Closed
wants to merge 1 commit into from

Conversation

ajithme
Copy link
Contributor

@ajithme ajithme commented Jan 15, 2020

What changes were proposed in this pull request?

WIP
Added a syntax for SHOW TABLES EXTENDED which can output a additional column compared to SHOW TABLES which prints the table type with possible values MANAGED,EXTERNAL,VIEW
Also to reduce complexity, this PR breaks org.apache.spark.sql.execution.command.ShowTablesCommand which was responsible for SHOW TABLES and SHOW TABLE command into separate classes

Why are the changes needed?

Intention is to support show tables with a additional column 'type' where type can be MANAGED,EXTERNAL,VIEW using which user can query only tables of required types, like listing only views or only external tables (using a where clause over type column).

Usecase example:
Currently its not possible to list all the VIEWS, but other technologies like hive support it using SHOW VIEWS, mysql supports it using a more complex query SHOW FULL TABLES WHERE table_type = 'VIEW;

Decide to take mysql approach as it provides more flexibility for querying.

Does this PR introduce any user-facing change?

Yes. New option EXTENDED for SHOW TABLES command

How was this patch tested?

TODO:

  1. Add UTs
  2. where clause support
  3. V2 catalog support

@ajithme
Copy link
Contributor Author

ajithme commented Jan 15, 2020

cc @srowen @dongjoon-hyun @vanzin @HyukjinKwon @maropu @cloud-fan Please let me know your opinion about this feature proposal

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-30517] Support SHOW TABLES EXTENDED [SPARK-30517][SQL] Support SHOW TABLES EXTENDED Jan 20, 2020
@github-actions
Copy link

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Apr 30, 2020
@github-actions github-actions bot closed this May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants