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): Add checks that projection/filters/fetch in TableScan is empty #8883

Closed mcheshkov closed 1 week ago

mcheshkov commented 3 weeks ago

Check List

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

Without these checks TableScan->CubeScan rule is, technically, unsound. For now it's just a sanity check.

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 82.55%. Comparing base (e02f612) to head (240947f). Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...besql/cubesql/src/compile/rewrite/rules/members.rs 88.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #8883 +/- ## ======================================= Coverage 82.55% 82.55% ======================================= Files 221 221 Lines 77709 77734 +25 ======================================= + Hits 64151 64174 +23 - Misses 13558 13560 +2 ``` | [Flag](https://app.codecov.io/gh/cube-js/cube/pull/8883/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/8883/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cube-js) | `82.55% <88.00%> (+<0.01%)` | :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 1 week 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/6T3NDew4zeqeVsuJhtchfmVVbHpT)) | [Visit Preview](https://examples-angular-dashboard-git-table-scan-rewri-b357fb-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm | | **examples-react-d3** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-d3/3JWvc7aCT5TfcLWcA4AGzQbNYbTb)) | [Visit Preview](https://examples-react-d3-git-table-scan-rewrite-checks-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm | | **examples-react-dashboard** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-dashboard/BJE6DZvv9WVPMBEudcRjD3N5J6U1)) | [Visit Preview](https://examples-react-dashboard-git-table-scan-rewrite-checks-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm | | **examples-react-data-table** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-data-table/4U8VaURmwxpyB8JuJFWR5guuTt8w)) | [Visit Preview](https://examples-react-data-table-git-table-scan-rewrit-bb44ff-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm | | **examples-react-highcharts** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-highcharts/484wRPLJqZS9kQpU9mvRkWor9RrU)) | [Visit Preview](https://examples-react-highcharts-git-table-scan-rewrit-f59fd8-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm | | **examples-react-material-ui** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-material-ui/5FnSgkYhn86UFWXt6cRbCqBPLCDn)) | [Visit Preview](https://examples-react-material-ui-git-table-scan-rewri-31ae5c-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm | | **examples-react-pivot-table** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-react-pivot-table/ArAZAHUSNxiaphk4Wxbjhu8R1HFD)) | [Visit Preview](https://examples-react-pivot-table-git-table-scan-rewri-7d7515-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm | | **examples-vue-query-builder** | ⬜️ Ignored ([Inspect](https://vercel.com/cube-dev/examples-vue-query-builder/GHstwfg8JnHxCsa2ChX8KDYp1Y89)) | [Visit Preview](https://examples-vue-query-builder-git-table-scan-rewri-b78844-cube-dev.vercel.app) | | Nov 11, 2024 3:12pm |