You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2026/03/11 03:30:08 UTC

[PR] [SPARK-55957][SQL] Add 'DATA_SOURCE_NOT_FOUND' in Catalog.ERROR_HANDLING_RULES [spark]

HyukjinKwon opened a new pull request, #54750:
URL: https://github.com/apache/spark/pull/54750

   ### What changes were proposed in this pull request?
   
   Add `"DATA_SOURCE_NOT_FOUND" -> ReturnPartialResults` to `ListTable.ERROR_HANDLING_RULES` in the classic Catalog so that `listTables()` returns partial results when some tables fail with DATA_SOURCE_NOT_FOUND instead of failing the entire call.
   
   ### Why are the changes needed?
   
   When a table in the session catalog has an invalid or missing provider (e.g. class not on classpath), resolving it throws `DATA_SOURCE_NOT_FOUND`. Without this rule, `listTables()` would fail entirely; with it, other tables are still returned and the bad one is included as a placeholder (partial result).
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. `spark.catalog.listTables()` (and overloads) no longer throw when one table has a missing data source; they return partial results.
   
   ### How was this patch tested?
   
   New test in `CatalogSuite`: `listTables returns partial results when one table has DATA_SOURCE_NOT_FOUND`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-55957][SQL] Add 'DATA_SOURCE_NOT_FOUND' in Catalog.ERROR_HANDLING_RULES [spark]

Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #54750:
URL: https://github.com/apache/spark/pull/54750#issuecomment-4036591222

   Merged to master.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-55957][SQL] Add 'DATA_SOURCE_NOT_FOUND' in Catalog.ERROR_HANDLING_RULES [spark]

Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon closed pull request #54750: [SPARK-55957][SQL] Add 'DATA_SOURCE_NOT_FOUND' in Catalog.ERROR_HANDLING_RULES
URL: https://github.com/apache/spark/pull/54750


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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