jerqi commented on PR #6853:
URL: https://github.com/apache/gravitino/pull/6853#issuecomment-2785148132
I mean that you can modify my code. But they should use the same method.
```
if (stringId == null && !isEntityExist(ident, SCHEMA)) {
return EntityCombinedSchema.of(alteredSchema)
.withHiddenProperties(
getHiddenPropertyNames(
catalogIdent,
HasPropertyMetadata::schemaPropertiesMetadata,
alteredSchema.properties()));
}
long schemaId;
if (stringId != null) {
schemaId = stringId.id();
} else {
schemaId = getEntity(ident, SCHEMA, SchemaEntity.class).id();
}
```
You can refactor the getEntity to adapt it.
--
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]