ZhanGHanG9991 commented on code in PR #7277:
URL: https://github.com/apache/iotdb/pull/7277#discussion_r971472398
##########
server/src/main/java/org/apache/iotdb/db/mpp/aggregation/Aggregator.java:
##########
@@ -63,22 +65,18 @@ public int processTsBlock(TsBlock tsBlock) {
checkArgument(
step.isInputRaw(),
"Step in SeriesAggregateScanOperator and RawDataAggregateOperator can
only process raw input");
- if (inputLocationList == null) {
- return accumulator.addInput(tsBlock.getTimeAndValueColumn(0),
curTimeRange);
- } else {
- int lastReadReadIndex = 0;
- for (InputLocation[] inputLocations : inputLocationList) {
- checkArgument(
- inputLocations[0].getTsBlockIndex() == 0,
- "RawDataAggregateOperator can only process one tsBlock input.");
- Column[] timeValueColumn = new Column[2];
- timeValueColumn[0] = tsBlock.getTimeColumn();
- timeValueColumn[1] =
tsBlock.getColumn(inputLocations[0].getValueColumnIndex());
- lastReadReadIndex =
- Math.max(lastReadReadIndex, accumulator.addInput(timeValueColumn,
curTimeRange));
- }
- return lastReadReadIndex;
+ int lastReadReadIndex = 0;
+ for (InputLocation[] inputLocations : inputLocationList) {
+ checkArgument(
+ inputLocations[0].getTsBlockIndex() == 0,
+ "RawDataAggregateOperator can only process one tsBlock input.");
+ Column[] controlAndValueColumn = new Column[2];
Review Comment:
I've changed the code.
--
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]