shaofengshi closed pull request #294: KYLIN-3635 Percentile calculation on 
Spark engine is wrong
URL: https://github.com/apache/kylin/pull/294
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/core-metadata/src/main/java/org/apache/kylin/measure/percentile/PercentileMeasureType.java
 
b/core-metadata/src/main/java/org/apache/kylin/measure/percentile/PercentileMeasureType.java
index 44bd2133b2..60b3282c71 100644
--- 
a/core-metadata/src/main/java/org/apache/kylin/measure/percentile/PercentileMeasureType.java
+++ 
b/core-metadata/src/main/java/org/apache/kylin/measure/percentile/PercentileMeasureType.java
@@ -82,6 +82,11 @@ public PercentileCounter valueOf(String[] values, 
MeasureDesc measureDesc,
                 }
                 return counter;
             }
+
+            @Override
+            public void reset() {
+                current = new PercentileCounter(dataType.getPrecision());
+            }
         };
     }
 


 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to