shuwenwei commented on code in PR #382:
URL: https://github.com/apache/tsfile/pull/382#discussion_r1918191939
##########
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:
Why didn't modify 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]