Skip to content

Support database-scoped tablet insertion in table sessions - #19237

Open
shuwenwei wants to merge 21 commits into
masterfrom
feature/table-session-db-insert
Open

shuwenwei wants to merge 21 commits into
masterfrom
feature/table-session-db-insert

Address table model review feedback

3bd9194
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 20, 2026 in 4m 40s

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 failure on line 39 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/quotas/NoopOperationQuota.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=AaH4gUSZZv3hqgngYNHy&open=AaH4gUSZZv3hqgngYNHy&pullRequest=19237

Check warning on line 335 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IoTDBException'.

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

Check warning on line 442 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.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=AaH4gUomZv3hqgngYNII&open=AaH4gUomZv3hqgngYNII&pullRequest=19237

Check failure on line 1672 in iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.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=AaHzR_x4P0Tz7xgLNg5R&open=AaHzR_x4P0Tz7xgLNg5R&pullRequest=19237

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to use the more specialised Functional Interface 'IntFunction<T>'

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

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

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=AaH4gUvnZv3hqgngYNIR&open=AaH4gUvnZv3hqgngYNIR&pullRequest=19237

Check warning on line 545 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.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=AaH4gU7dZv3hqgngYNIz&open=AaH4gU7dZv3hqgngYNIz&pullRequest=19237

Check failure on line 686 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/AlignedWritableMemChunk.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

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

Expected @throws tag for 'IoTDBException'.

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

Check warning on line 386 in iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IllegalArgumentException'.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check failure on line 945 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

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

Line is longer than 100 characters (found 108).

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

Check warning on line 2847 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 177).

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

Check warning on line 505 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 171).

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

Check warning on line 507 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/InformationSchemaContentSupplierFactory.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=AaH4gUiVZv3hqgngYNIC&open=AaH4gUiVZv3hqgngYNIC&pullRequest=19237

Check warning on line 175 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/consensus/deletion/DeletionResourceManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 110).

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

Check failure on line 3027 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.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=AaH4gU7dZv3hqgngYNI3&open=AaH4gU7dZv3hqgngYNI3&pullRequest=19237

Check warning on line 3034 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this lambda with method reference 'DropTableColumnProcedure.class::cast'.

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

Check warning on line 723 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IoTDBException'.

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

Check warning on line 135 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/scheduler/DeleteTimeSeriesProcedureScheduler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this method to not match a restricted identifier.

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

Check failure on line 979 in iotdb-client/session/src/main/java/org/apache/iotdb/session/SessionConnection.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 5197 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/executor/ClusterConfigTaskExecutor.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=AaH4gUXKZv3hqgngYNH0&open=AaH4gUXKZv3hqgngYNH0&pullRequest=19237

Check failure on line 5602 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/executor/ClusterConfigTaskExecutor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use static access with "org.apache.iotdb.commons.client.AbstractConfigNodeInfo" for "CONFIG_REGION_ID".

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

Check failure on line 388 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/consensus/deletion/persist/PageCacheDeletionBuffer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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