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

fix(cubesql): Add checks that projection/filters/fetch in TableScan is empty #8883

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

mcheshkov
Copy link
Member

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 (if issue reference is not provided)

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

Copy link

codecov bot commented Oct 29, 2024

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 ⚠️
Additional details and impacted files
@@           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 Coverage Δ
cubesql 82.55% <88.00%> (+<0.01%) ⬆️

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.

@mcheshkov mcheshkov marked this pull request as ready for review October 30, 2024 01:13
@mcheshkov mcheshkov requested a review from a team as a code owner October 30, 2024 01:13
Copy link

vercel bot commented Nov 11, 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 Nov 11, 2024 3:12pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 3:12pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 3:12pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 3:12pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 3:12pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 3:12pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 3:12pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 3:12pm

@mcheshkov mcheshkov merged commit a7bab04 into master Nov 11, 2024
86 checks passed
@mcheshkov mcheshkov deleted the table-scan-rewrite-checks branch November 11, 2024 16:44
ptiurin pushed a commit to firebolt-db/cube that referenced this pull request Nov 27, 2024
…s empty (cube-js#8883)

Without these checks TableScan->CubeScan rule is, technically, unsound. For now it's just a sanity check, initial planning should not generate TableScan with any of that.
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.

1 participant