Copilot commented on code in PR #18028:
URL: https://github.com/apache/druid/pull/18028#discussion_r2104139731


##########
server/src/main/java/org/apache/druid/metadata/SqlSegmentsMetadataQuery.java:
##########
@@ -286,6 +287,37 @@ public List<DataSegmentPlus> 
iterateAllUnusedSegmentsForDatasource(
     }
   }
 
+  /**
+   * Retrieves unused segments that are fully contained within the given 
interval.
+   *
+   * @param interval       Returned segments must be fully contained within 
this
+   *                       interval
+   * @param versions       Optional list of segment versions. If passed as 
null,
+   *                       all segment versions are eligible.
+   * @param limit          Maximum number of segments to return. If passed as 
null,
+   *                       all segments are returned.
+   * @param maxUpdatedTime Returned segments must have a {@code 
used_status_last_updated}
+   *                       which is either null or earlier than this value.
+   */
+  public List<DataSegment> findUnusedSegments(

Review Comment:
   The Javadoc for `findUnusedSegments` does not include a `@param dataSource` 
description. Please add a `@param dataSource` entry to accurately document the 
parameter.



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