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 const null clauses in runtime chunk exclusion #4880
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4880 +/- ##
==========================================
+ Coverage 89.51% 89.62% +0.11%
==========================================
Files 226 226
Lines 50818 51105 +287
==========================================
+ Hits 45491 45805 +314
+ Misses 5327 5300 -27
Continue to review full report at Codecov.
|
@akuzm just an advice, you can ask for support folks to convert the SDC issue into a public issue. |
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.
Why do the counts in the EXPLAIN output change due to this?
There was one null value in the |
403e777
to
f3a6234
Compare
The code we inherited from postgres expects that if we have a const null or false clause, it's going to be the single one, but that's not true for runtime chunk exclusion because we don't try to fold such restrictinfos after evaluating the mutable functions. Fix it to also work for multiple restrictinfos.
The code we inherited from postgres expects that if we have a const null or false clause, it's going to be the single one, but that's not true for runtime chunk exclusion because we don't try to fold such restrictinfos after evaluating the mutable functions. Fix it to also work for multiple restrictinfos.
Related to https://github.com/timescale/Support-Dev-Collab/issues/620
Disable-check: commit-count