akshayrai commented on a change in pull request #3830: [TE] Presto Connector
backend and front end
URL: https://github.com/apache/incubator-pinot/pull/3830#discussion_r256917585
##########
File path:
thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/util/ThirdEyeUtils.java
##########
@@ -520,4 +526,48 @@ public static void
initLightWeightThirdEyeEnvironment(String thirdEyeConfigDir)
throw new RuntimeException(e);
}
}
+
+ /**
+ * Guess time duration from period.
+ *
+ * @param granularity dataset granularity
+ * @return
+ */
+ public static int getTimeDuration(Period granularity) {
Review comment:
Thanks for moving this into a utility module and updating all occurrences!
Good job!
----------------------------------------------------------------
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]