-
Notifications
You must be signed in to change notification settings - Fork 895
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
Account for CPU tuple cost in DecompressChunk #7551
base: main
Are you sure you want to change the base?
Conversation
It was always zero due to a typo.
This makes things flakier. Tested here: #7551
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7551 +/- ##
==========================================
+ Coverage 80.06% 82.32% +2.25%
==========================================
Files 190 238 +48
Lines 37181 43724 +6543
Branches 9450 10972 +1522
==========================================
+ Hits 29770 35994 +6224
- Misses 2997 3397 +400
+ Partials 4414 4333 -81 ☔ View full report in Codecov by Sentry. |
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.
You are removing the costs from most of the plans (which I think is a good thing since it reduces the risk of flakes and the costs are not part of these tests), but I do not see any test that demonstrates that your fix actually works, i.e., that the cost is non-zero for some query.
All the plan changes demonstrate that it actually has an effect, no? This is how we normally check the cost changes. |
Well, the fact that there are plan changes demonstrate that there is a cost changes, but not in what direction. For example, if the CPU cost is zero for Also, if I look at this line from the patch (it is a removed row), it does not show up as zero, so it is not clear what this does.
|
It shows the cost of the underlying plan. I can add a trivial test that shows costs, but not sure what use it has, and it's going to make the tests more fragile because the costs sometimes fluctuate because of floating point errors and so on. |
…ent_decompress_chunk-*
…rent_decompress_chunk-*
…ent_decompress_chunk-* transparent_decompression-*
…_chunk-* transparent_decompression-*
…rent_decompress_chunk-* transparent_decompression-*
It was always zero due to a typo.
Disable-check: force-changelog-file