jerryshao commented on code in PR #8635:
URL: https://github.com/apache/gravitino/pull/8635#discussion_r2366615499
##########
core/src/main/java/org/apache/gravitino/catalog/TableOperationDispatcher.java:
##########
@@ -251,20 +267,37 @@ public Table alterTable(NameIdentifier ident,
TableChange... changes)
TableEntity.class,
TABLE,
tableEntity -> {
- String newName =
+ Namespace newNamespace =
Arrays.stream(changes)
- .filter(c -> c instanceof
TableChange.RenameTable)
- .map(c -> ((TableChange.RenameTable)
c).getNewName())
+ .filter(
Review Comment:
Can we move this to a helper method to simplify the code here?
--
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]