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

xhsun 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 b24f46a  Minor fix for integration test (#3777)
b24f46a is described below

commit b24f46a20b35405d263e24f7e4d5dc8818e66c46
Author: Xiaohui Sun <[email protected]>
AuthorDate: Fri Feb 1 10:31:20 2019 -0800

    Minor fix for integration test (#3777)
    
    * [TE] detection - minor fixes for integration test
    
    * [TE] backend - use dataset time zone as default for detector
---
 .../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 71fa4a5..415f78b 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
@@ -125,7 +125,7 @@ public class AnomalyDetectorWrapper extends 
DetectionPipeline {
     this.dataset = 
this.provider.fetchDatasets(Collections.singletonList(metricConfigDTO.getDataset()))
         .get(metricConfigDTO.getDataset());
     // date time zone for moving windows. use dataset time zone as default
-    this.dateTimeZone = 
DateTimeZone.forID(MapUtils.getString(config.getProperties(), PROP_TIMEZONE, 
"America/Los_Angeles"));
+    this.dateTimeZone = 
DateTimeZone.forID(MapUtils.getString(config.getProperties(), PROP_TIMEZONE, 
this.dataset.getTimezone()));
   }
 
   @Override


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

Reply via email to