-
Notifications
You must be signed in to change notification settings - Fork 28k
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-32219][SQL] Add SHOW CACHED TABLES Command #29034
Conversation
Test build #125308 has finished for PR 29034 at commit
|
Looks useful cc: @HyukjinKwon @viirya |
retest this please |
Test build #125335 has started for PR 29034 at commit |
Test build #125345 has finished for PR 29034 at commit
|
retest this please |
Test build #125372 has finished for PR 29034 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catalog
provides isCached(tableName: String)
API. Can't we use it to know which table is cached?
@maropu @viirya Also, i was thinking, if we want to make this information available from one of the And we could apply filter to only see individual table types.
What do you guys think ? |
@viirya we can, but in sql mode e.g. |
Yea, I think this fix is for SQL interfaces.
hm, adding a new column |
It's ok to add an attribute
|
Ok. Sounds good !!
I was not aware of this !! Thanks !! |
retest this please |
Looks okay as it is. |
Test build #125534 has finished for PR 29034 at commit
|
Test build #125556 has finished for PR 29034 at commit
|
retest this please |
Test build #125584 has finished for PR 29034 at commit
|
retest this please |
@ulysses-you Ur, could you resolve the conflict? |
Test build #125646 has finished for PR 29034 at commit
|
Test build #125655 has finished for PR 29034 at commit
|
Test build #125664 has finished for PR 29034 at commit
|
cc @maropu @cloud-fan thanks for review. |
retest this please |
Test build #126170 has finished for PR 29034 at commit
|
retest this please |
Test build #126987 has finished for PR 29034 at commit
|
I'm okay to support it and no more comment. Anyone could check this? also cc: @cloud-fan |
Test build #127196 has finished for PR 29034 at commit
|
Test build #127195 has finished for PR 29034 at commit
|
Test build #127206 has finished for PR 29034 at commit
|
Test build #127238 has finished for PR 29034 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
Test build #130925 has finished for PR 29034 at commit
|
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
Show resolved
Hide resolved
Test build #133162 has finished for PR 29034 at commit
|
Test build #133312 has finished for PR 29034 at commit
|
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. |
What changes were proposed in this pull request?
Modify
SHOW TABLES
to supportSHOW CACHED TABLES
.After this pr, we can call
Why are the changes needed?
Once we cache table in sql mode, we have no way to get it back, so that we don't know which table has cached.
If we want to reduce some cache, we have to do
clear cache
that remove all cached tables.SHOW CACHED TABLES
can give a way to find which table is cached, then we can uncache the one we want.Does this PR introduce any user-facing change?
Yes, a new command.
How was this patch tested?
New test.