Skip to content

Merge LastQueryScanNode of same device #15735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

shuwenwei
Copy link
Member

@shuwenwei shuwenwei commented Jun 17, 2025

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

Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 51.55280% with 78 lines in your changes missing coverage. Please review.

Project coverage is 39.13%. Comparing base (f55dfe0) to head (c0ed35b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...ueryengine/plan/planner/OperatorTreeGenerator.java 0.00% 35 Missing ⚠️
...nner/plan/node/source/DeviceLastQueryScanNode.java 61.44% 32 Missing ⚠️
...b/queryengine/plan/planner/LogicalPlanBuilder.java 78.94% 4 Missing ⚠️
...ngine/plan/planner/plan/node/PlanGraphPrinter.java 0.00% 3 Missing ⚠️
...gine/plan/planner/distribution/SourceRewriter.java 81.81% 2 Missing ⚠️
...n/operator/process/last/LastQuerySortOperator.java 75.00% 1 Missing ⚠️
...eryengine/plan/planner/plan/node/PlanNodeType.java 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #15735      +/-   ##
============================================
- Coverage     39.14%   39.13%   -0.01%     
  Complexity      198      198              
============================================
  Files          4835     4834       -1     
  Lines        314405   314355      -50     
  Branches      39436    39425      -11     
============================================
- Hits         123067   123037      -30     
+ Misses       191338   191318      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant