Skip to content

Support spill of devce entry in query process - #18493

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

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

fix rate

d1a2449
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Aug 23, 2026 in 7m 54s

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 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 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 958 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

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

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

Check failure on line 836 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/optimizations/PushPredicateIntoTableScan.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not throw exceptions in finally blocks.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAXzq38BXGTVaHSW3dU&open=AaAXzq38BXGTVaHSW3dU&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 141 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-H7VZS0qiySfA&open=AaAu_9v-H7VZS0qiySfA&pullRequest=18493

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAh7P67Ope1kOWjBBzw&open=AaAh7P67Ope1kOWjBBzw&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 544 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 'recordDeviceEntryDiskIODuringFetchSchema' must contain no more than '2' consecutive capital letters.

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

Check warning on line 133 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/exchange/MPPDataExchangeManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 115).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAXzrDfBXGTVaHSW3d1&open=AaAXzrDfBXGTVaHSW3d1&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 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 582 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 'getDiskIOSizeForDeviceEntryDuringDistributionPlan' must contain no more than '2' consecutive capital letters.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAh7P5FOpe1kOWjBBzl&open=AaAh7P5FOpe1kOWjBBzl&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 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

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAXzrIoBXGTVaHSW3eH&open=AaAXzrIoBXGTVaHSW3eH&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 840 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=AaAXzrNOBXGTVaHSW3ej&open=AaAXzrNOBXGTVaHSW3ej&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 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 108 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/DeviceIteratorScanOperator.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=AaAu_-ggH7VZS0qiySfB&open=AaAu_-ggH7VZS0qiySfB&pullRequest=18493

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

'try rcurly' has incorrect indentation level 12, expected level should be 10.

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

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaAh7P5wOpe1kOWjBBzq&open=AaAh7P5wOpe1kOWjBBzq&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