Skip to content

[Query] Release UDF query scope when IoTDBLocal rejects a non-query statement - #19240

Merged
JackieTien97 merged 1 commit into
masterfrom
ty/iotdblocal-rejected-query-cleanup
Nov 12, 2026
Merged

JackieTien97 merged 1 commit into
masterfrom
ty/iotdblocal-rejected-query-cleanup

Clean up query execution rejected by IoTDBLocal read-only check

64f04e6
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 12, 2026 in 6m 22s

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 321 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/predicate/ConvertPredicateToTimeFilterVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof GenericLiteral genericliteral'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj5CL0v7uGd5-UMBT&open=AaHOj5CL0v7uGd5-UMBT&pullRequest=19240

Check warning on line 203 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertRowsStatement.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=AaHOj5gj0v7uGd5-UMBc&open=AaHOj5gj0v7uGd5-UMBc&pullRequest=19240

Check warning on line 173 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.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 '118'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj6Ej0v7uGd5-UMBm&open=AaHOj6Ej0v7uGd5-UMBm&pullRequest=19240

Check warning on line 37 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/internal/session/InternalSessionPoolBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'}' at column 40 should be alone on a line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj3PP0v7uGd5-UMAg&open=AaHOj3PP0v7uGd5-UMAg&pullRequest=19240

Check warning on line 255 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/LoadTsFileTableSchemaCache.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBException iotdbexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj6OE0v7uGd5-UMBp&open=AaHOj6OE0v7uGd5-UMBp&pullRequest=19240

Check warning on line 656 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/IrExpressionInterpreter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Number number'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj4wZ0v7uGd5-UMBG&open=AaHOj4wZ0v7uGd5-UMBG&pullRequest=19240

Check warning on line 169 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertRowsOfOneDeviceStatement.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=AaHOj5kO0v7uGd5-UMBe&open=AaHOj5kO0v7uGd5-UMBe&pullRequest=19240

Check warning on line 165 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/service/UDFClassLoaderManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj3Vu0v7uGd5-UMAl&open=AaHOj3Vu0v7uGd5-UMAl&pullRequest=19240

Check warning on line 72 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/UDFTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj3Y80v7uGd5-UMAv&open=AaHOj3Y80v7uGd5-UMAv&pullRequest=19240

Check warning on line 187 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj9oG0v7uGd5-UMCI&open=AaHOj9oG0v7uGd5-UMCI&pullRequest=19240

Check warning on line 357 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/FragmentInstance.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj6BB0v7uGd5-UMBj&open=AaHOj6BB0v7uGd5-UMBj&pullRequest=19240

Check warning on line 337 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/TsFileResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'FileNotFoundException'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj3ql0v7uGd5-UMA2&open=AaHOj3ql0v7uGd5-UMA2&pullRequest=19240

Check warning on line 86 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/SubscriptionSessionWrapper.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj90o0v7uGd5-UMCP&open=AaHOj90o0v7uGd5-UMCP&pullRequest=19240

Check warning on line 39 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/internal/subscription/InternalSubscriptionTablePullConsumerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 109).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj3Pl0v7uGd5-UMAi&open=AaHOj3Pl0v7uGd5-UMAi&pullRequest=19240

Check warning on line 196 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertRowsStatement.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=AaHOj5gj0v7uGd5-UMBb&open=AaHOj5gj0v7uGd5-UMBb&pullRequest=19240

Check warning on line 764 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.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 '728'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj9HM0v7uGd5-UMB9&open=AaHOj9HM0v7uGd5-UMB9&pullRequest=19240

Check warning on line 1065 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/ExpressionAnalyzer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 116).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj5Sd0v7uGd5-UMBW&open=AaHOj5Sd0v7uGd5-UMBW&pullRequest=19240

Check warning on line 363 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/FragmentInstance.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj6BB0v7uGd5-UMBk&open=AaHOj6BB0v7uGd5-UMBk&pullRequest=19240

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

WhitespaceAround: '}' is not preceded with whitespace.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj79Z0v7uGd5-UMB0&open=AaHOj79Z0v7uGd5-UMB0&pullRequest=19240

Check warning on line 136 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/tree/SubscriptionTreePushConsumerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj9pW0v7uGd5-UMCK&open=AaHOj9pW0v7uGd5-UMCK&pullRequest=19240

Check warning on line 125 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/task/subtask/processor/PipeProcessorSubtaskWorker.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=AaHOj7Or0v7uGd5-UMBv&open=AaHOj7Or0v7uGd5-UMBv&pullRequest=19240

Check warning on line 93 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/UDFTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Convert this Map to an EnumMap.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj3Y80v7uGd5-UMAr&open=AaHOj3Y80v7uGd5-UMAr&pullRequest=19240

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

WhitespaceAround: '{' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHOj79Z0v7uGd5-UMBz&open=AaHOj79Z0v7uGd5-UMBz&pullRequest=19240

Check warning on line 143 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/DatabasePartitionTable.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=AaHOj9Dk0v7uGd5-UMB7&open=AaHOj9Dk0v7uGd5-UMB7&pullRequest=19240

Check warning on line 153 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertMultiTabletsStatement.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=AaHOj5co0v7uGd5-UMBZ&open=AaHOj5co0v7uGd5-UMBZ&pullRequest=19240