This is an automated email from the ASF dual-hosted git repository.

jihao 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 dac8eca  [TE]  predicted baseline endpoint fix (#4005)
dac8eca is described below

commit dac8ecaff8f688300492a36f6d4ccdaffe1ba1e4
Author: Jihao Zhang <[email protected]>
AuthorDate: Thu Mar 21 17:02:16 2019 -0700

    [TE]  predicted baseline endpoint fix (#4005)
---
 .../java/org/apache/pinot/thirdeye/detection/DetectionResource.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/DetectionResource.java
 
b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/DetectionResource.java
index 894b2ac..1504640 100644
--- 
a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/DetectionResource.java
+++ 
b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/DetectionResource.java
@@ -514,7 +514,7 @@ public class DetectionResource {
     if (metric == null) {
       throw new IllegalArgumentException(String.format("Could not resolve 
metric '%s' in dataset '%s' for anomaly id %d", anomaly.getMetric(), 
anomaly.getCollection(), anomaly.getId()));
     }
-    TimeSeries ts = DetectionUtils.getBaselineTimeseries(anomaly, 
Multimaps.forMap(anomaly.getDimensions()), metric.getId(), 
configDAO.findById(anomaly.getId()), start, end, loader, provider);
+    TimeSeries ts = DetectionUtils.getBaselineTimeseries(anomaly, 
Multimaps.forMap(anomaly.getDimensions()), metric.getId(), 
configDAO.findById(anomaly.getDetectionConfigId()), start, end, loader, 
provider);
     return Response.ok(ts.getDataFrame()).build();
   }
 


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

Reply via email to