roryqi opened a new pull request, #10194: URL: https://github.com/apache/gravitino/pull/10194
### What changes were proposed in this pull request? This PR adds support for Spark 3.5's TableWritePrivilege interface to enforce MODIFY_TABLE privilege when performing write operations (INSERT, UPDATE, DELETE). Changes: - Add loadTable(Identifier, Set<TableWritePrivilege>) method to Spark 3.5+ catalogs (Hive, Iceberg, JDBC, Paimon) - Add loadTableForWriting and loadGravitinoTableForWriting helper methods in BaseCatalog - Upgrade Spark 3.5 version from 3.5.1 to 3.5.3 - Add integration test to verify authorization behavior In Spark 3.5+, when a user without MODIFY_TABLE privilege attempts to INSERT, a ForbiddenException will be thrown. In Spark 3.3/3.4, the same operation succeeds because those versions don't support TableWritePrivilege. ### Why are the changes needed? Fix: #10181 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Added tests. -- 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]
