klion26 commented on code in PR #3283:
URL: https://github.com/apache/amoro/pull/3283#discussion_r1808136592


##########
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/controller/OptimizerGroupController.java:
##########
@@ -82,25 +84,33 @@ public void getOptimizerTables(Context ctx) {
 
     String optimizerGroupUsedInDbFilter = ALL_GROUP.equals(optimizerGroup) ? 
null : optimizerGroup;
     // get all info from underlying table table_runtime
-    List<TableRuntimeMeta> tableRuntimeBeans =
+
+    List<Integer> statusCodes =
+        actionFilter.isEmpty()
+            ? null
+            : actionFilter.stream()
+                .map(filter -> ProcessStatus.valueOf(filter).ordinal())

Review Comment:
   ```suggestion
                   .map(filter -> OptimizingStatus.valueOf(filter).getCode())
   ```



-- 
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]

Reply via email to