baiyangtx commented on code in PR #3167:
URL: https://github.com/apache/amoro/pull/3167#discussion_r1766821362
##########
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/controller/TableController.java:
##########
@@ -497,18 +497,14 @@ public void getTableList(Context ctx) {
ServerCatalog serverCatalog = tableService.getServerCatalog(catalog);
Function<TableFormat, String> formatToType =
format -> {
- switch (format) {
- case MIXED_HIVE:
- case MIXED_ICEBERG:
- return TableMeta.TableType.ARCTIC.toString();
- case PAIMON:
- return TableMeta.TableType.PAIMON.toString();
- case ICEBERG:
- return TableMeta.TableType.ICEBERG.toString();
- case HUDI:
- return TableMeta.TableType.HUDI.toString();
- default:
- throw new IllegalStateException("Unknown format");
+ if (format.equals(TableFormat.MIXED_HIVE) ||
format.equals(TableFormat.MIXED_ICEBERG)) {
+ return TableMeta.TableType.ARCTIC.toString();
+ } else if (format.equals(TableFormat.PAIMON)) {
+ return TableMeta.TableType.PAIMON.toString();
+ } else if (format.equals(TableFormat.ICEBERG)) {
Review Comment:
fixed
--
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]