Skip to content

Fix table UDF result block splitting - #18333

Merged
ColinLeeo merged 10 commits into
masterfrom
fix/table-udf-result-chunking
Aug 6, 2026
Merged

Fix table UDF result block splitting#18333
ColinLeeo merged 10 commits into
masterfrom
fix/table-udf-result-chunking

Clear partition cache on close

a6862cf
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Aug 6, 2026 in 9m 51s

Quality Gate failed

Failed conditions
7.1% Duplication on New Code (required ≤ 5%)
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 508 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof AbstractOperatePipeProcedureV2 abstractoperatepipeprocedurev2'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNV3tKElHIHuLwL9C&open=AZ-xNV3tKElHIHuLwL9C&pullRequest=18333

Check warning on line 1419 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

switch without "default" clause.

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

Check warning on line 128 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/PasswordChangeAuditContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof RelationalAuthorStatement relationalauthorstatement'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNV04KElHIHuLwL81&open=AZ-xNV04KElHIHuLwL81&pullRequest=18333

Check warning on line 49 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/rate/AbstractGroupedIrateAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 136).

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

Check warning on line 471 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 126).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNV3tKElHIHuLwL9H&open=AZ-xNV3tKElHIHuLwL9H&pullRequest=18333

Check warning on line 112 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/rate/ExtrapolationUtil.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 102).

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

Check warning on line 1384 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.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=AZ_U4RRgTdXMJj1tUTzr&open=AZ_U4RRgTdXMJj1tUTzr&pullRequest=18333

Check warning on line 56 in iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/TopicConstant.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add 'since' and/or 'forRemoval' arguments to the @Deprecated annotation.

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

Check failure on line 113 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/rate/RateFunctionIntermediateStateCodec.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=AZ_U4RELTdXMJj1tUTzI&open=AZ_U4RELTdXMJj1tUTzI&pullRequest=18333

Check warning on line 62 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/DNAuditLogger.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNV1sKElHIHuLwL84&open=AZ-xNV1sKElHIHuLwL84&pullRequest=18333

Check warning on line 144 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/rate/OrderedIncreaseAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Distance between variable 'newSampleCount' 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=AZ_U4REVTdXMJj1tUTzK&open=AZ_U4REVTdXMJj1tUTzK&pullRequest=18333

Check warning on line 132 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/rate/AbstractGroupedDeltaAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 103).

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

Check warning on line 56 in iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/TopicConstant.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not forget to remove this deprecated code someday.

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

Check warning on line 719 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/security/TreeAccessCheckVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 120).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNVvkKElHIHuLwL8m&open=AZ-xNVvkKElHIHuLwL8m&pullRequest=18333

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

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

Check warning on line 76 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/rate/AbstractGroupedIrateAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 108).

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

Check warning on line 444 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/fa/nfa/SimpleNFA.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Override the "equals" method in this class.

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

Check warning on line 116 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/rate/AbstractGroupedRateAccumulator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 136).

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

Check warning on line 513 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 102).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNV3tKElHIHuLwL9N&open=AZ-xNV3tKElHIHuLwL9N&pullRequest=18333

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

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

Check warning on line 558 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 10, expected level should be 6.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNV3tKElHIHuLwL9T&open=AZ-xNV3tKElHIHuLwL9T&pullRequest=18333

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

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

Check warning on line 1441 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-xNVseKElHIHuLwL8j&open=AZ-xNVseKElHIHuLwL8j&pullRequest=18333

Check warning on line 173 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/UserRoleModificationAuditContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBRuntimeException iotdbruntimeexception'

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

Check warning on line 283 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/task/builder/PipeDataNodeTaskBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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