jt2594838 commented on code in PR #382:
URL: https://github.com/apache/tsfile/pull/382#discussion_r1918237782


##########
java/tsfile/src/main/java/org/apache/tsfile/file/metadata/statistics/IntegerStatistics.java:
##########
@@ -142,17 +141,17 @@ public Integer getLastValue() {
 
   @Override
   public double getSumDoubleValue() {
-    throw new StatisticsClassException(
-        String.format(STATS_UNSUPPORTED_MSG, TSDataType.INT32, "double sum"));
+    return sumValue;
   }
 
   @Override
   public long getSumLongValue() {
     return sumValue;
   }
 
+  @SuppressWarnings("rawtypes")
   @Override
-  protected void mergeStatisticsValue(Statistics<Integer> stats) {
+  protected void mergeStatisticsValue(Statistics stats) {
     IntegerStatistics intStats = (IntegerStatistics) stats;

Review Comment:
   No other type can be altered to INT32 so other statistics will not be merged 
into IntegerStatistics.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to