iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

Merge LastQueryScanNode of same device

Open shuwenwei opened this issue 7 months ago • 2 comments

Description

Merge LastQueryScanNode of same device For a scenario with 2 * 2 * 4 non-aligned devices and 80,000 measurement points per device. When the last cache is hit, the optimization effect of executing the following SQL statement is:

select last * from root.db.aaaaaaa0.bbbbbbb0.**

Before this optimization: image After this optimization: 截屏2025-06-18 12 00 25

shuwenwei avatar Jun 17 '25 01:06 shuwenwei

Codecov Report

Attention: Patch coverage is 59.71223% with 168 lines in your changes missing coverage. Please review.

Project coverage is 39.11%. Comparing base (b8fd089) to head (352191f). Report is 21 commits behind head on master.

Files with missing lines Patch % Lines
...ueryengine/plan/planner/OperatorTreeGenerator.java 0.00% 45 Missing :warning:
...an/planner/plan/node/source/LastQueryScanNode.java 52.94% 32 Missing :warning:
.../planner/plan/node/process/last/LastQueryNode.java 55.22% 30 Missing :warning:
.../process/last/AbstractUpdateLastCacheOperator.java 13.33% 13 Missing :warning:
...db/db/queryengine/plan/analyze/AnalyzeVisitor.java 70.58% 10 Missing :warning:
...b/queryengine/plan/planner/LogicalPlanBuilder.java 74.35% 10 Missing :warning:
...gine/plan/planner/distribution/SourceRewriter.java 88.88% 7 Missing :warning:
...ngine/execution/fragment/DataNodeQueryContext.java 16.66% 5 Missing :warning:
...er/distribution/SimpleFragmentParallelPlanner.java 16.66% 5 Missing :warning:
...e/iotdb/db/queryengine/common/MPPQueryContext.java 81.81% 2 Missing :warning:
... and 6 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #15735      +/-   ##
============================================
+ Coverage     39.09%   39.11%   +0.01%     
  Complexity      198      198              
============================================
  Files          4839     4839              
  Lines        314856   315188     +332     
  Branches      39530    39567      +37     
============================================
+ Hits         123108   123300     +192     
- Misses       191748   191888     +140     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Jun 17 '25 07:06 codecov[bot]