-
Notifications
You must be signed in to change notification settings - Fork 885
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 filtering of the redundant decompress chunk clauses over a compressed index path #5962
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5962 +/- ##
==========================================
+ Coverage 86.99% 87.01% +0.01%
==========================================
Files 243 243
Lines 56005 55960 -45
Branches 12401 12384 -17
==========================================
- Hits 48722 48694 -28
+ Misses 4946 4900 -46
- Partials 2337 2366 +29
... and 33 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@RafiaSabih, @jnidzwetzki: please review this pull request.
|
if (is_redundant_derived_clause(rinfo, ipath->indexclauses)) | ||
continue; /* dup or derived from same EquivalenceClass */ | ||
|
||
ListCell *indexclause_cell = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Could you add a comment that this code is based on is_redundant_derived_clause
but modified for IndexClause
? This would make the code easier to read without knowing this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment, rest looks good to me.
We just had a bad cast inside is_redundant_derived_clause before, because it doesn't work with IndexClauses. Filtering didn't work as a result.
We used to add join clauses that referenced a compressed column at the level of the compressed scan, and later remove them. This is wrong and useless, just don't add them.
We just had a bad cast inside
is_redundant_derived_clause
before, because it doesn't work withIndexClause
s. Filtering didn't work as a result.Disable-check: force-changelog-file
Disable-check: commit-count