kdkrkwhr opened a new pull request, #8095:
URL: https://github.com/apache/gravitino/pull/8095
Fixed incorrect use of == operator when comparing
PathBasedMetadataObject.PathType
objects with MetadataObject.Type enum values. Changed to use .equals()
method
for proper object comparison.
Changes made:
- RangerAuthorizationHDFSPlugin: Updated removeMetadataObject() method to
use
.equals() instead of == when comparing
authzMetadataObject.metadataObjectType()
with MetadataObject.Type values
- Added comprehensive tests to verify the fix works correctly and prevent
regression
- Tests cover all supported metadata object types (SCHEMA, TABLE, FILESET,
METALAKE, CATALOG)
This fix ensures proper object comparison semantics and prevents potential
bugs
in authorization logic.
--
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]