jihaozh commented on a change in pull request #3586: [TE] detection pipeline - 
multiple improvements
URL: https://github.com/apache/incubator-pinot/pull/3586#discussion_r239303288
 
 

 ##########
 File path: 
thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/detection/DetectionResource.java
 ##########
 @@ -164,11 +172,102 @@ public Response detectionPreview(
     return Response.ok(result).build();
   }
 
+  // return default bucket size based on cron schedule.
+  private long getBucketSize(DetectionConfigDTO config){
+    switch (config.getCron()) {
+      case DAILY_CRON:
+        // daily
+        return TimeUnit.DAYS.toMillis(1) + 1;
 
 Review comment:
   Thank you. Nice catch

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to