Skip to content

Conversation

@MazterQyou
Copy link
Member

@MazterQyou MazterQyou commented Aug 21, 2024

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made

This PR adds push down for MEASURE aggregate function, replacing it with the aggregate function of the respective measure. It additionally improves error thrown by MEASURE function when it cannot be pushed down (the original error thrown was oneshot cancelled, which does not help). The new error message should help users resolve the issue themselves should they stumble upon it.

@MazterQyou MazterQyou requested a review from a team as a code owner August 21, 2024 14:34
@codecov
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 95.27027% with 7 lines in your changes missing coverage. Please review.

Project coverage is 82.69%. Comparing base (ab3771b) to head (4968959).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...ompile/rewrite/rules/wrapper/aggregate_function.rs 94.73% 6 Missing ⚠️
...t/cubesql/cubesql/src/compile/engine/udf/common.rs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8606      +/-   ##
==========================================
+ Coverage   82.66%   82.69%   +0.03%     
==========================================
  Files         217      217              
  Lines       78125    78272     +147     
==========================================
+ Hits        64583    64729     +146     
- Misses      13542    13543       +1     
Flag Coverage Δ
cubesql 82.69% <95.27%> (+0.03%) ⬆️

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.

@MazterQyou MazterQyou force-pushed the cubesql/measure-func-error branch from 12f71bf to 89ec530 Compare September 23, 2024 21:37
@vercel
Copy link

vercel bot commented Sep 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Sep 23, 2024 10:04pm

@MazterQyou MazterQyou changed the title fix(cubesql): Yield a sensible error on MEASURE function push down feat(cubesql): Support MEASURE SQL push down Sep 23, 2024
@MazterQyou MazterQyou force-pushed the cubesql/measure-func-error branch from 89ec530 to 4968959 Compare September 23, 2024 22:04
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.

3 participants