geyanggang opened a new pull request, #12771: URL: https://github.com/apache/gravitino/pull/12771
### What changes were proposed in this pull request? This is the branch-1.3 backport of #12735 (cherry-pick of commit 4b529ce). It resolves the cherry-pick conflicts introduced because branch-1.3 differs from main: - `TestBaseCatalog.java`: added the imports that exist on main but are missing on branch-1.3 (`ObjectPath`, `TableNotExistException`, `TableCatalog`) and dropped the conflicting `CatalogException` import that is unused here. - `TestGravitinoHiveCatalog.java`: removed `testGetTableThrowsCatalogExceptionWhenForbidden` (and its now-unused imports). That test is not part of this fix and depends on the `ForbiddenException` -> `CatalogException` conversion in `getTable`, which does not exist on branch-1.3. The core fix is unchanged from #12735: skip forwarding an empty `TableChange` list to Gravitino when a table alter results in no actual change. ### Why are the changes needed? A no-op `ALTER TABLE` produced an empty update list, which the server rejects with `IllegalArgumentException: updates must not be empty`, failing the Flink job. This backports the fix to branch-1.3. Fix: #12734 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? `./gradlew :flink-connector:flink-common:check -PskipITs` passes on branch-1.3. -- 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]
