Skip to content

Support spill of devce entry in query process - #18493

Open
Wei-hao-Li wants to merge 9 commits into
masterfrom
deviceEntrySpill-devPr
Open

Support spill of devce entry in query process#18493
Wei-hao-Li wants to merge 9 commits into
masterfrom
deviceEntrySpill-devPr

fix rpc endpoint

85d190c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Aug 24, 2026 in 9m 1s

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 warning on line 92 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 'recordDeviceEntryDiskIODuringFetchSchema' must contain no more than '2' consecutive capital letters.

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

Check warning on line 76 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=AaAXzq69BXGTVaHSW3dd&open=AaAXzq69BXGTVaHSW3dd&pullRequest=18493

Check warning on line 798 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 the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

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

Check warning on line 119 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

Distance between variable 'releasedRamBytes' 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=AaAXzq7jBXGTVaHSW3do&open=AaAXzq7jBXGTVaHSW3do&pullRequest=18493

Check warning on line 138 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 764 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=AaAXzrNOBXGTVaHSW3eb&open=AaAXzrNOBXGTVaHSW3eb&pullRequest=18493

Check warning on line 842 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 rcurly' has incorrect indentation level 12, expected level should be 10.

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

Check failure on line 67 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/converter/LoadTableStatementDataTypeConvertExecutionVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAXzqunBXGTVaHSW3dK&open=AaAXzqunBXGTVaHSW3dK&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 failure on line 89 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/converter/LoadTableStatementDataTypeConvertExecutionVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this "try" to a try-with-resources.

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

Check warning on line 752 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 327 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/AbstractTableScanOperator.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=AaAu_-hoH7VZS0qiySfC&open=AaAu_-hoH7VZS0qiySfC&pullRequest=18493

Check failure on line 392 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

Fix this access that will throw a NullPointerException when executed.

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

Check warning on line 724 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method has 8 parameters, which is greater than 7 authorized.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAXzq9BBXGTVaHSW3dy&open=AaAXzq9BBXGTVaHSW3dy&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 warning on line 47 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/spill/DeviceEntryIOContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 1238 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.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 '1,162'.

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

Check warning on line 73 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/metric/SeriesScanCostMetricSet.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check failure on line 89 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/converter/LoadTreeStatementDataTypeConvertExecutionVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this "try" to a try-with-resources.

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

Check warning on line 473 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/airgap/IoTDBDataRegionAirGapSink.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method has 8 parameters, which is greater than 7 authorized.

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

Check failure on line 2304 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 48 to the 15 allowed.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the "AtomicReference" API for synchronization instead of a "synchronized" block.

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

Check warning on line 866 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/receiver/IoTDBFileReceiver.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove these unused method parameters "req", "loadStatus".

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

Check warning on line 77 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

Use concise character class syntax '\\d' instead of '[0-9]'.

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

Check warning on line 97 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 'recordDeviceEntryDiskIODuringDistributionPlan' must contain no more than '2' consecutive capital letters.

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