deepthi912 commented on code in PR #15332:
URL: https://github.com/apache/pinot/pull/15332#discussion_r2006135713


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/TableViews.java:
##########
@@ -170,6 +186,21 @@ public List<SegmentStatusInfo> 
getSegmentStatuses(TableViews.TableView externalV
     return segmentStatusInfoList;
   }
 
+  public TableView getSegmentsView(TableViews.TableView tableView, 
List<String> segmentNames) {
+    TableView tableViewResult = new TableView();
+    tableViewResult._offline = new HashMap<>();
+    tableViewResult._realtime = new HashMap<>();
+    for (String segmentName : segmentNames) {
+      if (tableView._offline != null) {
+        tableViewResult._offline.put(segmentName, 
tableView._offline.get(segmentName));

Review Comment:
   It's okay to have null but I think yeah I can better check if it exists and 
then add.



-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to