adarshsanjeev commented on code in PR #15024:
URL: https://github.com/apache/druid/pull/15024#discussion_r1349497625


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/input/table/SegmentWithDescriptor.java:
##########
@@ -65,6 +82,18 @@ public ResourceHolder<Segment> getOrLoad()
     return segmentSupplier.get();
   }
 
+  public <QueryType, RowType> 
Pair<LoadedSegmentDataProvider.DataServerQueryStatus, Yielder<RowType>> 
fetchRowsFromDataServer(
+      Query<QueryType> query,
+      Function<Sequence<QueryType>, Sequence<RowType>> mappingFunction,
+      Closer closer
+  ) throws IOException
+  {
+    if (loadedSegmentDataProvider == null) {
+      throw new RE("loadedSegmentDataProvider was null. Fetching segments from 
servers is not supported for segment[%s]", descriptor);

Review Comment:
   Added



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to