Skip to content
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

Adding average rate logic in query service #87

Merged
merged 71 commits into from
Oct 15, 2021
Merged

Conversation

sarthak77
Copy link
Member

@sarthak77 sarthak77 commented Sep 23, 2021

Ref issue : hypertrace/hypertrace#296

Following tasks have been performed as a part of this PR :

  1. Add support for average rate function in query service (changes made in primarily in PinotFunctionConverter)
  2. Extract time ranges from query request which is required in computing average rate (changes made in primarily in ExecutionContext)
  3. Changed interface of RequestHandler to add support for parsing timeColumn name directly from config

@codecov
Copy link

codecov bot commented Sep 23, 2021

Codecov Report

Merging #87 (21acc1f) into main (c56ccad) will increase coverage by 0.86%.
The diff coverage is 97.87%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #87      +/-   ##
============================================
+ Coverage     81.60%   82.47%   +0.86%     
- Complexity      391      419      +28     
============================================
  Files            37       37              
  Lines          1522     1603      +81     
  Branches        164      168       +4     
============================================
+ Hits           1242     1322      +80     
  Misses          207      207              
- Partials         73       74       +1     
Flag Coverage Δ
integration 82.47% <97.87%> (+0.86%) ⬆️
unit 80.22% <97.87%> (+1.02%) ⬆️

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

Impacted Files Coverage Δ
...service/pinot/QueryRequestToPinotSQLConverter.java 87.96% <94.11%> (+0.30%) ⬆️
...ypertrace/core/query/service/ExecutionContext.java 94.24% <98.14%> (+2.47%) ⬆️
...ypertrace/core/query/service/QueryServiceImpl.java 100.00% <100.00%> (ø)
.../query/service/pinot/PinotBasedRequestHandler.java 71.17% <100.00%> (+0.10%) ⬆️
...rvice/pinot/converters/PinotFunctionConverter.java 94.80% <100.00%> (+1.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c56ccad...21acc1f. Read the comment docs.

@github-actions

This comment has been minimized.

@sarthak77 sarthak77 marked this pull request as draft September 23, 2021 06:15
@github-actions

This comment has been minimized.

@sarthak77 sarthak77 marked this pull request as ready for review September 23, 2021 07:42
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Contributor

@aaron-steinfeld aaron-steinfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything left is small/nits I believe.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@sarthak77 sarthak77 merged commit aa88793 into main Oct 15, 2021
@sarthak77 sarthak77 deleted the cleaning_avg_rate branch October 15, 2021 05:03
@github-actions
Copy link

Unit Test Results

  22 files  ±  0    22 suites  ±0   7s ⏱️ -4s
124 tests +11  124 ✔️ +11  0 💤 ±0  0 ❌ ±0 

Results for commit aa88793. ± Comparison against base commit c56ccad.

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.

None yet

5 participants