You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by yu...@apache.org on 2022/01/26 03:55:21 UTC
[iotdb] branch kyy-2022 updated: remove equal
This is an automated email from the ASF dual-hosted git repository.
yuyuankang pushed a commit to branch kyy-2022
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/kyy-2022 by this push:
new 8d32788 remove equal
8d32788 is described below
commit 8d327885978a70fe1d493dcc16e6c771fc498261
Author: Ring-k <yu...@hotmail.com>
AuthorDate: Wed Jan 26 11:54:28 2022 +0800
remove equal
---
.../org/apache/iotdb/db/query/aggregation/impl/MaxValueAggrResult.java | 2 +-
.../org/apache/iotdb/db/query/aggregation/impl/MinValueAggrResult.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MaxValueAggrResult.java b/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MaxValueAggrResult.java
index 6c859ea..27eb4a8 100644
--- a/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MaxValueAggrResult.java
+++ b/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MaxValueAggrResult.java
@@ -123,7 +123,7 @@ public class MaxValueAggrResult extends AggregateResult {
if (maxInfo == null || maxInfo.val == null) {
return;
}
- if (!hasCandidateResult() || maxInfo.compareTo(getValue()) >= 0) {
+ if (!hasCandidateResult() || maxInfo.compareTo(getValue()) > 0) {
setValue(maxInfo);
}
}
diff --git a/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MinValueAggrResult.java b/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MinValueAggrResult.java
index 55950ed..7cc3f8e 100644
--- a/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MinValueAggrResult.java
+++ b/server/src/main/java/org/apache/iotdb/db/query/aggregation/impl/MinValueAggrResult.java
@@ -127,7 +127,7 @@ public class MinValueAggrResult extends AggregateResult {
if (minInfo == null || minInfo.val == null) {
return;
}
- if (!hasCandidateResult() || minInfo.compareTo(getValue()) <= 0) {
+ if (!hasCandidateResult() || minInfo.compareTo(getValue()) < 0) {
setValue(minInfo);
}
}