Skip to content

add latency metric for multistage queries#16398

Merged
Jackie-Jiang merged 1 commit intoapache:masterfrom
jadami10:jadami/oss-multistage-latency-metric
Jul 21, 2025
Merged

add latency metric for multistage queries#16398
Jackie-Jiang merged 1 commit intoapache:masterfrom
jadami10:jadami/oss-multistage-latency-metric

Conversation

@jadami10
Copy link
Contributor

This adds a latency metric for v2 engine queries. It follows the existing pattern of reusing the same "global" metric name for both global and per-table latencies. This is unlikely to be ideal or useful in every case for tracking latency for v2 engine queries, but it 1) follows the pattern set for other metrics and 2) is strictly better than what we have today which is no metrics

the change looks a little weird because I also refactored the other metrics to only iterate the tables once.

@codecov-commenter
Copy link

codecov-commenter commented Jul 21, 2025

Codecov Report

Attention: Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.

Project coverage is 63.32%. Comparing base (1a476de) to head (9636da6).
Report is 489 commits behind head on master.

Files with missing lines Patch % Lines
...requesthandler/MultiStageBrokerRequestHandler.java 0.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #16398      +/-   ##
============================================
+ Coverage     62.90%   63.32%   +0.41%     
+ Complexity     1386     1364      -22     
============================================
  Files          2867     2976     +109     
  Lines        163354   172928    +9574     
  Branches      24952    26497    +1545     
============================================
+ Hits         102755   109502    +6747     
- Misses        52847    55052    +2205     
- Partials       7752     8374     +622     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-11 63.28% <14.28%> (+0.41%) ⬆️
java-21 63.29% <14.28%> (+0.47%) ⬆️
skip-bytebuffers-false ?
skip-bytebuffers-true ?
temurin 63.32% <14.28%> (+0.41%) ⬆️
unittests 63.31% <14.28%> (+0.41%) ⬆️
unittests1 56.45% <100.00%> (+0.63%) ⬆️
unittests2 33.28% <14.28%> (-0.29%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xiangfu0 xiangfu0 added the metrics Related to metrics emission and collection label Jul 21, 2025
@Jackie-Jiang Jackie-Jiang merged commit a8a82f7 into apache:master Jul 21, 2025
18 checks passed
@xiangfu0 xiangfu0 added multi-stage Related to the multi-stage query engine performance Related to performance optimization labels Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metrics Related to metrics emission and collection multi-stage Related to the multi-stage query engine performance Related to performance optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants