Skip to content

Implement of Module 3 - #18473

Open
Wei-hao-Li wants to merge 5 commits into
deviceEntrySpillfrom
deviceEntrySpill-dev2
Open

Implement of Module 3#18473
Wei-hao-Li wants to merge 5 commits into
deviceEntrySpillfrom
deviceEntrySpill-dev2

fix & add IT

d2b74b0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Aug 19, 2026 in 6m 29s

Quality Gate failed

Failed conditions
E 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 failure on line 1964 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/distribute/TableDistributedPlanGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 147 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/server/OpcUaNameSpace.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'Exception'.

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

Check warning on line 22 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/DeviceEntryDataSetResult.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this class declaration to use 'record DeviceEntryDataSetResult(String database, DeviceEntryDataSet dataSet, bo...)'.

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

Check failure on line 162 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/client/IoTDBOpcUaClient.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 767 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'catch' child has incorrect indentation level 14, expected level should be 12.

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

Check failure on line 246 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/DeviceEntrySortedMaterializer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 747 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/AbstractAggTableScanOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this expression which always evaluates to "true"

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

Check warning on line 117 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/TreeNonAlignedDeviceViewAggregationScanOperator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this method to simply inherit it.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAXzrE-BXGTVaHSW3d8&open=AaAXzrE-BXGTVaHSW3d8&pullRequest=18493

Check warning on line 1096 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused private "addFilePathToMap" method.

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

Check warning on line 90 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/DeviceEntryRpcSegmentFetcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant jump.

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

Check warning on line 168 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/DeviceEntrySpillManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Immediately return this expression instead of assigning it to the temporary variable "queryDirectory".

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

Check warning on line 136 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/common/MPPQueryContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'deviceEntryIOContext' must contain no more than '2' consecutive capital letters.

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

Check warning on line 62 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/AbstractDeviceEntryMaterializer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IOException'.

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

Check warning on line 32 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/DeviceEntryDataSetHandle.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this class declaration to use 'record DeviceEntryDataSetHandle(String queryId, PlanNodeId planNodeId, TEndPoin...)'.

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

Check failure on line 1395 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/distribute/TableDistributedPlanGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 121 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/thrift/async/handler/PipeTransferTsFileHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Constructor has 10 parameters, which is greater than 7 authorized.

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

Check warning on line 135 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/AbstractDeviceEntryMaterializer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'createIOContextOnSpill' must contain no more than '2' consecutive capital letters.

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

Check warning on line 665 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

All overloaded methods should be placed next to each other. Placing non-overloaded methods in between overloaded methods with the same type is a violation. Previous overloaded method located at line '515'.

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

Check warning on line 766 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'catch' child has incorrect indentation level 14, expected level should be 12.

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

Check warning on line 174 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/active/ActiveLoadPathHelper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

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

Check warning on line 279 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/DeviceEntrySortedMaterializer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Error.

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

Check warning on line 57 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/converter/PipeTsFileConversionTaskManager.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=AaAXzqu4BXGTVaHSW3dM&open=AaAXzqu4BXGTVaHSW3dM&pullRequest=18493

Check warning on line 30 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/statistics/QueryPlanStatistics.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'diskIOSizeForDeviceEntryDuringFetchSchema' must contain no more than '2' consecutive capital letters.

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

Check warning on line 765 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'catch' child has incorrect indentation level 14, expected level should be 12.

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

Check warning on line 841 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'catch' child has incorrect indentation level 14, expected level should be 12.

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