Skip to content

[SPARK-51712][SQL] Swallow non-fatal Throwables when resolving tables/views in spark.catalog.listTables()#54982

Closed
HyukjinKwon wants to merge 3 commits intoapache:masterfrom
HyukjinKwon:SPARK-51899
Closed

[SPARK-51712][SQL] Swallow non-fatal Throwables when resolving tables/views in spark.catalog.listTables()#54982
HyukjinKwon wants to merge 3 commits intoapache:masterfrom
HyukjinKwon:SPARK-51899

Conversation

@HyukjinKwon
Copy link
Copy Markdown
Member

@HyukjinKwon HyukjinKwon commented Mar 24, 2026

What changes were proposed in this pull request?

This PR reverts #54750 (additional fix) and #50696 (revert of #50515 and new approach) and revives #50515.

Why are the changes needed?

  • SHOW TABLES does not require table resolution so it already shows those information
  • We're already doing this for Hive unsupported table types.

Does this PR introduce any user-facing change?

Yes, this will return the list of tables when spark.catalog.listTables is used even when there is an exception during table resolution. It failed before.

How was this patch tested?

Manually tested.

Was this patch authored or co-authored using generative AI tooling?

No.

@HyukjinKwon
Copy link
Copy Markdown
Member Author

cc @cloud-fan

@dongjoon-hyun
Copy link
Copy Markdown
Member

Ur, @HyukjinKwon . The git commit log might look weird because of the previous activity.

This PR reverts #54750 and #50696 and revive #50515.

Currently, the master branch already have SPARK-51712 (without revert commit) although it might be not released.

$ git log --oneline | grep SPARK-51712
554d67817e4 [SPARK-51712][SQL] Swallow non-fatal Throwables when resolving tables/views in spark.catalog.listTables()

For this PR, can we have a new JIRA ID to simplify the git log? I believe you can clone SPARK-51712 JIRA issue if you want to land it back here.

@HyukjinKwon
Copy link
Copy Markdown
Member Author

HyukjinKwon commented Mar 24, 2026

Oh, it was reverted and new change was added in #50696 at the same time.
So the changes for SPARK-51712 has not been released

I fixed the PR description a bit.

@HyukjinKwon
Copy link
Copy Markdown
Member Author

HyukjinKwon commented Mar 25, 2026

Let me merge this frist. @dongjoon-hyun please let me know if you prefer to have a new JIRA - I don't have a strong preferenace. I can revert and merge it with a new JIRA 👍

@HyukjinKwon
Copy link
Copy Markdown
Member Author

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants