Skip to content

Fix compile error

557f74c
Select commit
Loading
Failed to load commit list.
Merged

cp from master #16878

Fix compile error
557f74c
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Dec 8, 2025 in 3m 56s

Quality Gate failed

Failed conditions
5.2% Duplication on New Code (required ≤ 5%)
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 267 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/TierManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

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

Check failure on line 4693 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/StatementAnalyzer.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=AZr8_GPnqXG6R84cTLSu&open=AZr8_GPnqXG6R84cTLSu&pullRequest=16878

Check warning on line 88 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 213 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/SettleCompactionTask.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'org.apache.iotdb.commons.exception.IllegalPathException', as it cannot be thrown from method's body.

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

Check warning on line 32 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/transformation/dag/column/unary/scalar/AbstractLengthColumnTransformer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change the visibility of this constructor to "protected".

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

Check warning on line 129 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/util/AstUtil.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 103 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/InsertTabletNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 57 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Cast one of the operands of this multiplication operation to a "long".

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

Check warning on line 603 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/CompactionUtils.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=AZr8_F6pqXG6R84cTLSk&open=AZr8_F6pqXG6R84cTLSk&pullRequest=16878

Check warning on line 123 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ObjectTypeUtils.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=AZr8_Gt2qXG6R84cTLTK&open=AZr8_Gt2qXG6R84cTLTK&pullRequest=16878

Check warning on line 213 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/SettleCompactionTask.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.io.IOException', as it cannot be thrown from method's body.

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

Check warning on line 199 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/MultiTsFileDeviceIterator.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=AZr8_FwvqXG6R84cTLSg&open=AZr8_FwvqXG6R84cTLSg&pullRequest=16878

Check warning on line 253 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.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=AZr8_GSzqXG6R84cTLS0&open=AZr8_GSzqXG6R84cTLS0&pullRequest=16878

Check warning on line 128 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 269 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested try block into a separate method.

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

Check failure on line 211 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this "clone" implementation; use a copy constructor or copy factory instead.

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

Check failure on line 136 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/TierManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "All disks of tier {} are full." 3 times.

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

Check failure on line 245 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZr8_GSzqXG6R84cTLS-&open=AZr8_GSzqXG6R84cTLS-&pullRequest=16878

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "LOGGER" private field.

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

Check warning on line 71 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 3582 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

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

Check failure on line 186 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

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

Check failure on line 208 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

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

Check warning on line 141 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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