JingsongLi commented on PR #8929:
URL: https://github.com/apache/paimon/pull/8929#issuecomment-5132470606
- `PrivilegedCatalog` overrides only the two-parameter
`createPartitions(identifier, partitions)` method.
- The method it inherits from,
`DelegateCatalog.createPartitions(identifier, partitions, ignoreIfExists)`,
directly calls the wrapped catalog, bypassing the newly added INSERT permission
check.
- Using the three-parameter API (regardless of whether `ignoreIfExists`
is true or false) still allows partitions to be created without permission.
- You must override the three-parameter method and call `assertCanInsert`.
--
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]