Skip to content

Added flags to mark whether a device has device descendants to optimize query like select xx from xxx.**#17672

Merged
jt2594838 merged 3 commits into
masterfrom
device-flag-query
Jun 1, 2026
Merged

Added flags to mark whether a device has device descendants to optimize query like select xx from xxx.**#17672
jt2594838 merged 3 commits into
masterfrom
device-flag-query

Address device descendant flag review comments

2a68c38
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 29, 2026 in 2m 38s

Annotations

Check failure on line 271 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/traverser/Traverser.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=AZ4mlnCmI-vGf32cLFKE&open=AZ4mlnCmI-vGf32cLFKE&pullRequest=17672

Check warning on line 393 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/MTreeBelowSGMemoryImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 69 to 64, Complexity from 20 to 14, Nesting Level from 4 to 2, Number of Variables from 18 to 6.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ4mlnE8I-vGf32cLFKF&open=AZ4mlnE8I-vGf32cLFKF&pullRequest=17672

Check warning on line 461 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 85 to 64, Complexity from 21 to 14, Nesting Level from 6 to 2, Number of Variables from 18 to 6.

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

Check warning on line 357 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 69 to 64, Complexity from 17 to 14, Nesting Level from 5 to 2, Number of Variables from 17 to 6.

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