This is an automated email from the ASF dual-hosted git repository. hui pushed a commit to branch lmh/aggrOpRefactor in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 395ce5b72c05b85444ce3d037cc763197e5b4d55 Author: Minghui Liu <[email protected]> AuthorDate: Thu Jul 7 09:25:24 2022 +0800 fix bug in skipOutOfTimeRangePoints --- .../org/apache/iotdb/db/mpp/execution/operator/AggregationUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/AggregationUtil.java b/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/AggregationUtil.java index f13552c005..f05cb17ab7 100644 --- a/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/AggregationUtil.java +++ b/server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/AggregationUtil.java @@ -93,7 +93,7 @@ public class AggregationUtil { public static TsBlock skipOutOfTimeRangePoints( TsBlock tsBlock, TimeRange curTimeRange, boolean ascending) { TimeColumn timeColumn = tsBlock.getTimeColumn(); - long targetTime = ascending ? curTimeRange.getMin() : curTimeRange.getMax(); + long targetTime = ascending ? curTimeRange.getMax() : curTimeRange.getMin(); int left = 0, right = timeColumn.getPositionCount() - 1, mid; // if ascending, find the first greater than or equal to targetTime // else, find the first less than or equal to targetTime
