This is an automated email from the ASF dual-hosted git repository. akshayrai09 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push: new dd73957 [TE] Use MapUtils instead of ConfigUtils - return default instead of exception (#4331) dd73957 is described below commit dd7395769d6298a7146bab5b5dd67f20740f3fe9 Author: Akshay Rai <akshayra...@gmail.com> AuthorDate: Tue Jun 18 11:12:32 2019 -0700 [TE] Use MapUtils instead of ConfigUtils - return default instead of exception (#4331) --- .../apache/pinot/thirdeye/detection/wrapper/AnomalyDetectorWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/wrapper/AnomalyDetectorWrapper.java b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/wrapper/AnomalyDetectorWrapper.java index 9326fda..4f8c67b 100644 --- a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/wrapper/AnomalyDetectorWrapper.java +++ b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/wrapper/AnomalyDetectorWrapper.java @@ -135,7 +135,7 @@ public class AnomalyDetectorWrapper extends DetectionPipeline { // detection window unit this.windowUnit = TimeUnit.valueOf(MapUtils.getString(config.getProperties(), PROP_WINDOW_UNIT, "DAYS")); // run frequency, used to determine moving windows for minute-level detection - Map<String, Object> frequency = ConfigUtils.getMap(config.getProperties().get(PROP_FREQUENCY)); + Map<String, Object> frequency = (Map<String, Object>) MapUtils.getMap(config.getProperties(), PROP_FREQUENCY); this.functionFrequency = new TimeGranularity(MapUtils.getIntValue(frequency, "size", 15), TimeUnit.valueOf(MapUtils.getString(frequency, "unit", "MINUTES"))); MetricConfigDTO metricConfigDTO = this.provider.fetchMetrics(Collections.singletonList(this.metricEntity.getId())).get(this.metricEntity.getId()); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org