diqiu50 opened a new pull request, #14991: URL: https://github.com/apache/gravitino/pull/14991
### What changes were proposed in this pull request? When a Gravitino catalog is the current catalog, `SELECT * FROM parquet.\`path\`` is forwarded to the Gravitino server, which rejects the non-3-part name and prevents Spark from falling back to its SQL-on-file resolution. The connector now yields for such references: a prefilter on single-part namespaces with a path separator (`/`, `\\`) in the table name, followed by a schema-existence check so real tables are never affected. `loadTable`/`tableExists` report not found and both the Spark 3.5 rule and the 4.0 `FileResolver` resolve the path. This also avoids the false positive in #10826 where a schema named `parquet` would be hijacked. Fixes #10825. ### Does this PR introduce _any_ user-facing change? DataSource shortcut queries with a Gravitino catalog as the current catalog now resolve files as in vanilla Spark. Existing Gravitino tables are unaffected. ### How was this patch tested? Added `TestBaseCatalog` covering the prefilter, schema-existence decision and guarded entry points; ran it against Spark 3.5 and 4.0. Supersedes #10826. -- 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]
