You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pinot.apache.org by GitBox <gi...@apache.org> on 2018/12/06 01:07:08 UTC
[GitHub] apucher commented on a change in pull request #3586: [TE] detection
pipeline - multiple improvements
apucher commented on a change in pull request #3586: [TE] detection pipeline - multiple improvements
URL: https://github.com/apache/incubator-pinot/pull/3586#discussion_r239296578
##########
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:
Is the +1 on purpose?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pinot.apache.org
For additional commands, e-mail: dev-help@pinot.apache.org