FANNG1 opened a new pull request, #11306: URL: https://github.com/apache/gravitino/pull/11306
### What changes were proposed in this pull request? This PR adds Spark connector support for registering Gravitino Iceberg REST catalogs through Spark's native Iceberg `SparkCatalog` when explicitly requested with: `spark.sql.gravitino.lakehouse-iceberg.engine-access-mode=native` It also adds parser/config tests and native Iceberg REST catalog config generation tests. ### Why are the changes needed? This is the first implementation step for unified engine access mode. It lets Spark use native Iceberg REST access while preserving the existing Gravitino Spark connector behavior by default. Fix: #11305 ### Does this PR introduce _any_ user-facing change? Yes. It adds a new Spark config: `spark.sql.gravitino.<provider>.engine-access-mode=auto|gravitino|native` For Iceberg: - default `auto` preserves existing behavior - `native` registers Spark's native Iceberg REST catalog for `catalog-backend=rest` ### How was this patch tested? Ran: `./gradlew :spark-connector:spark-common:test --tests org.apache.gravitino.spark.connector.plugin.TestGravitinoDriverPlugin --tests org.apache.gravitino.spark.connector.TestGravitinoSparkConfig` Also checked: `git diff --check` -- 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]
