cube-js / cube

📊 Cube — Universal semantic layer platform for AI, BI, spreadsheets, and embedded analytics
https://cube.dev
Other
17.96k stars 1.78k forks source link

fix(cubesql): Calculate proper limit and offset for CubeScan in nested limits case #8924

Open mcheshkov opened 2 weeks ago

mcheshkov commented 2 weeks ago

Check List

Description of Changes Made (if issue reference is not provided)

Before this in Limit(Limit(CubeScan)) logical plan outer fetch and skip values would win. Not they are calculated properly.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 99.66044% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.66%. Comparing base (8e815c2) to head (80ea85b).

Files with missing lines Patch % Lines
...besql/cubesql/src/compile/rewrite/rules/members.rs 96.15% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #8924 +/- ## ========================================== + Coverage 82.55% 82.66% +0.11% ========================================== Files 221 222 +1 Lines 77703 78244 +541 ========================================== + Hits 64146 64681 +535 - Misses 13557 13563 +6 ``` | [Flag](https://app.codecov.io/gh/cube-js/cube/pull/8924/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cube-js) | Coverage Δ | | |---|---|---| | [cubesql](https://app.codecov.io/gh/cube-js/cube/pull/8924/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cube-js) | `82.66% <99.66%> (+0.11%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cube-js#carryforward-flags-in-the-pull-request-comment) to find out more.

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

vercel[bot] commented 2 weeks ago

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](https://vercel.com/cube-dev/examples-angular-dashboard/DmF4a5N1A8fZCzA6sQpL8uYqCJah)) | [Visit Preview](https://examples-angular-dashboard-git-push-cubescan-li-b30a7e-cube-dev.vercel.app) | | Nov 13, 2024 0:09am | | **examples-react-d3** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-d3/2g9P43WH3AHkndnj2qh26zKL7cua)) | [Visit Preview](https://examples-react-d3-git-push-cubescan-limit-calc-cube-dev.vercel.app) | | Nov 13, 2024 0:09am | | **examples-react-dashboard** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-dashboard/6ZZfH4AoCB9MQEH7B9hpAzxwaHgv)) | [Visit Preview](https://examples-react-dashboard-git-push-cubescan-limit-calc-cube-dev.vercel.app) | | Nov 13, 2024 0:09am | | **examples-react-data-table** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-data-table/FQ8i5CyX6REZFnbC6f2XtNebEV2R)) | [Visit Preview](https://examples-react-data-table-git-push-cubescan-limit-calc-cube-dev.vercel.app) | | Nov 13, 2024 0:09am | | **examples-react-highcharts** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-highcharts/2CJQ3hunnrq1CSvWXLLsQr9iRzjm)) | [Visit Preview](https://examples-react-highcharts-git-push-cubescan-limit-calc-cube-dev.vercel.app) | | Nov 13, 2024 0:09am | | **examples-react-material-ui** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-material-ui/58sq2xhk9UUNduFRwjnN1fFyfecG)) | [Visit Preview](https://examples-react-material-ui-git-push-cubescan-li-9bc0ee-cube-dev.vercel.app) | | Nov 13, 2024 0:09am | | **examples-react-pivot-table** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-pivot-table/5AZXbgSduE3bA3pGC8g4HFtkNxYK)) | [Visit Preview](https://examples-react-pivot-table-git-push-cubescan-li-0d5388-cube-dev.vercel.app) | | Nov 13, 2024 0:09am | | **examples-vue-query-builder** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-vue-query-builder/GRkDGMGF5faUH8zMBCk1n9mUxyLM)) | [Visit Preview](https://examples-vue-query-builder-git-push-cubescan-li-94afd8-cube-dev.vercel.app) | | Nov 13, 2024 0:09am |