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 a93fc77  [TE] yaml - change default preview config id (#3799)
a93fc77 is described below

commit a93fc77e7ae1a1c61ce534bb6be4950441813977
Author: Jihao Zhang <[email protected]>
AuthorDate: Thu Feb 7 13:49:33 2019 -0800

    [TE] yaml - change default preview config id (#3799)
    
    So that preview does not fetch previous anomalies.
---
 .../java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java
 
b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java
index d1cdd6a..cd7015b 100644
--- 
a/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java
+++ 
b/thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/detection/yaml/YamlResource.java
@@ -464,7 +464,7 @@ public class YamlResource {
     if (detectionConfig == null) {
       return 
Response.status(Response.Status.BAD_REQUEST).entity(responseMessage).build();
     }
-    detectionConfig.setId(-1L);
+    detectionConfig.setId(Long.MAX_VALUE);
     DetectionPipeline pipeline = this.loader.from(this.provider, 
detectionConfig, start, end);
     DetectionPipelineResult result = pipeline.run();
 


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

Reply via email to