Skip to content

[Pipe] Fix aggregate window statistics - #19326

Open
Caideyipi wants to merge 2 commits into
masterfrom
fix/pipe-aggregate-window-statistics
Open

Caideyipi wants to merge 2 commits into
masterfrom
fix/pipe-aggregate-window-statistics

[Pipe] Route aggregate type dispatch through TypeService

1b9ea5a
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 20, 2026 in 6m 0s

Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 138 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/aggregate/operator/intermediateresult/specifictype/doubletype/FractionPoweredSumOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Explicitly cast this "long" to "double" to document potential precision loss.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWioF_QqsEhbBSfK9&open=AaHzWioF_QqsEhbBSfK9&pullRequest=19326

Check warning on line 86 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a thread-safe type; adding "volatile" is not enough to make this field thread-safe.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_2Cz_kWP0RXIn5m&open=AaH3N_2Cz_kWP0RXIn5m&pullRequest=19326

Check warning on line 3023 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_5Bz_kWP0RXIn5z&open=AaH3N_5Bz_kWP0RXIn5z&pullRequest=19326

Check warning on line 1029 in iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add 'since' and/or 'forRemoval' arguments to the @Deprecated annotation.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWi3E_QqsEhbBSfLO&open=AaHzWi3E_QqsEhbBSfLO&pullRequest=19326

Check warning on line 3980 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/TypeServices.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 14, expected level should be 10.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWisl_QqsEhbBSfLG&open=AaHzWisl_QqsEhbBSfLG&pullRequest=19326

Check warning on line 110 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/statemachine/ConfigRegionStateMachine.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWiyU_QqsEhbBSfLK&open=AaHzWiyU_QqsEhbBSfLK&pullRequest=19326

Check failure on line 388 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/consensus/deletion/persist/PageCacheDeletionBuffer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_n3z_kWP0RXIn5T&open=AaH3N_n3z_kWP0RXIn5T&pullRequest=19326

Check failure on line 3027 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_5Bz_kWP0RXIn50&open=AaH3N_5Bz_kWP0RXIn50&pullRequest=19326

Check warning on line 41 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/aggregate/operator/aggregatedresult/standardstatistics/PeakOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 16, expected level should be 12.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_j1z_kWP0RXIn45&open=AaH3N_j1z_kWP0RXIn45&pullRequest=19326

Check warning on line 281 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/source/IoTDBConfigRegionSource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWizj_QqsEhbBSfLM&open=AaHzWizj_QqsEhbBSfLM&pullRequest=19326

Check warning on line 38 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/aggregate/operator/intermediateresult/sametype/numeric/IntegralPoweredSumOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 12, expected level should be 8.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_kOz_kWP0RXIn5K&open=AaH3N_kOz_kWP0RXIn5K&pullRequest=19326

Check warning on line 5197 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/executor/ClusterConfigTaskExecutor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 152).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_HXz_kWP0RXIn4x&open=AaH3N_HXz_kWP0RXIn4x&pullRequest=19326

Check failure on line 1026 in iotdb-client/session/src/main/java/org/apache/iotdb/session/SessionConnection.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWi-Y_QqsEhbBSfLW&open=AaHzWi-Y_QqsEhbBSfLW&pullRequest=19326

Check warning on line 692 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/AlignedWritableMemChunk.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Distance between variable 'alignedWorkingListForFlush' declaration and its first usage is 4, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N-7lz_kWP0RXIn4t&open=AaH3N-7lz_kWP0RXIn4t&pullRequest=19326

Check failure on line 48 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/aggregate/operator/aggregatedresult/standardstatistics/ClearanceFactorOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "abs_max" 3 times.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWinj_QqsEhbBSfK3&open=AaHzWinj_QqsEhbBSfK3&pullRequest=19326

Check warning on line 39 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/aggregate/operator/intermediateresult/sametype/numeric/IntegralPoweredSumOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 12, expected level should be 8.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_kOz_kWP0RXIn5N&open=AaH3N_kOz_kWP0RXIn5N&pullRequest=19326

Check failure on line 1500 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueue.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_rEz_kWP0RXIn5X&open=AaH3N_rEz_kWP0RXIn5X&pullRequest=19326

Check warning on line 3985 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/TypeServices.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 14, expected level should be 10.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWisl_QqsEhbBSfLH&open=AaHzWisl_QqsEhbBSfLH&pullRequest=19326

Check warning on line 4059 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueue.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to use the more specialised Functional Interface 'IntFunction<T>'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_rEz_kWP0RXIn5Z&open=AaH3N_rEz_kWP0RXIn5Z&pullRequest=19326

Check warning on line 530 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_5Bz_kWP0RXIn5x&open=AaH3N_5Bz_kWP0RXIn5x&pullRequest=19326

Check warning on line 2786 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 185).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_5Bz_kWP0RXIn58&open=AaH3N_5Bz_kWP0RXIn58&pullRequest=19326

Check warning on line 1026 in iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Summary javadoc is missing.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWi3E_QqsEhbBSfLQ&open=AaHzWi3E_QqsEhbBSfLQ&pullRequest=19326

Check warning on line 1030 in iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not forget to remove this deprecated code someday.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWi3E_QqsEhbBSfLP&open=AaHzWi3E_QqsEhbBSfLP&pullRequest=19326

Check warning on line 5197 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/executor/ClusterConfigTaskExecutor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH3N_HXz_kWP0RXIn4u&open=AaH3N_HXz_kWP0RXIn4u&pullRequest=19326

Check failure on line 48 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/aggregate/operator/aggregatedresult/standardstatistics/PulseFactorOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "abs_max" 3 times.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHzWinI_QqsEhbBSfKw&open=AaHzWinI_QqsEhbBSfKw&pullRequest=19326