clee704 opened a new pull request, #47753: URL: https://github.com/apache/spark/pull/47753
### What changes were proposed in this pull request? Fix `spark.catalog.listTables()` failing when there is a temp view when the catalog is a V2 session catalog extending DelegatingCatalogExtension. ### Why are the changes needed? Some third-party libraries such as Delta Lake provide its own V2 session catalog implementation with DelegatingCatalogExtension. When using those libraries, `spark.catalog.listTable()` failed with an incomprehensible error like this: ``` org.apache.spark.sql.catalyst.parser.ParseException: [PARSE_EMPTY_STATEMENT] Syntax error, unexpected empty statement. SQLSTATE: 42617 (line 1, pos 0) ``` ### Does this PR introduce _any_ user-facing change? Fixes the issue ### How was this patch tested? Unit tests added ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
