yuqi1129 commented on code in PR #9513:
URL: https://github.com/apache/gravitino/pull/9513#discussion_r2633484380
##########
lance/lance-rest-server/src/main/java/org/apache/gravitino/lance/service/rest/LanceTableOperations.java:
##########
@@ -167,7 +167,8 @@ public Response registerTable(
: Maps.newHashMap(registerTableRequest.getProperties());
props.put(LANCE_LOCATION, registerTableRequest.getLocation());
props.put(LanceConstants.LANCE_TABLE_REGISTER, "true");
- ModeEnum mode = registerTableRequest.getMode();
+ ModeEnum mode =
+ registerTableRequest.getMode() == null ? ModeEnum.CREATE :
registerTableRequest.getMode();
Review Comment:
You are wrong, for register table request, only the following two modes:
```java
public static enum ModeEnum {
CREATE(String.valueOf("CREATE")),
OVERWRITE(String.valueOf("OVERWRITE"));
}
```
--
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]