COLDMANYU opened a new pull request, #14930: URL: https://github.com/apache/gravitino/pull/14930
### What changes were proposed in this pull request? `GravitinoPaimonCatalog` implements Paimon's `WithPaimonCatalog`: - `paimonCatalog()` returns the Paimon catalog of the wrapped `SparkCatalog`. - `paimonCatalogName()` returns the name the wrapped catalog was initialized with. Newer Paimon versions declare this method in `WithPaimonCatalog`; it has no `@Override`, so the class compiles against both Paimon 1.2 and newer versions. ### Why are the changes needed? Paimon procedures that work on the catalog rather than on one loaded table (`remove_orphan_files`, `repair`, `compact_database`, ...) cast the catalog they are called on to `WithPaimonCatalog`, and failed with a `ClassCastException` through Gravitino. Fixes #14929 ### Does this PR introduce _any_ user-facing change? These procedures can be called through a Gravitino Paimon catalog. ### How was this patch tested? - Unit test `TestGravitinoPaimonCatalogWithPaimonCatalog` checks the delegation. - New IT `testPaimonRemoveOrphanFilesProcedure` in `SparkPaimonCatalogIT` calls `remove_orphan_files` with `dry_run`. Without the change it fails with the `ClassCastException` in the issue. - `SparkPaimonCatalogFilesystemBackendIT35`: 37 tests, 32 passed, 5 skipped. -- 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]
