mxnzx commented on issue #8339:
URL: https://github.com/apache/gravitino/issues/8339#issuecomment-3253272920
@justinmclean
Hi @justinmclean, while writing the test I hit this precondition:
```
Preconditions.checkArgument(
names.size() != 1
|| type == MetadataObject.Type.CATALOG
|| type == MetadataObject.Type.METALAKE
|| type == MetadataObject.Type.ROLE,
"If the length of names is 1, it must be the CATALOG, METALAKE, or ROLE
type");
```
`java/org/apache/gravitino/MetadataObjects.java`
For GROUP, I expect `names.size()` to be 1 (since GROUP is metalake-scoped).
Should GROUP be added to this whitelist (i.e., `|| type ==
MetadataObject.Type.GROUP`)?
If yes, I’ll update the check and the test accordingly.
--
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]