Skip to content

Fix dropped quals bug in skipscan #8216

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

Conversation

natalya-aksman
Copy link
Member

@natalya-aksman natalya-aksman commented Jun 3, 2025

Fixes: #8217

Also fixes failed Sanitizer runs div by NULL issue which appeared after commit for #8210: https://github.com/timescale/timescaledb/actions/runs/15419915713/job/43391984943

Copy link

github-actions bot commented Jun 3, 2025

@mkindahl, @svenklemm: please review this pull request.

Powered by pull-review

@natalya-aksman natalya-aksman force-pushed the fix_dropped_index_quals_in_skipscan branch from 412066c to 6934f20 Compare June 3, 2025 16:34
@natalya-aksman natalya-aksman requested review from svenklemm and akuzm and removed request for svenklemm June 3, 2025 16:37
Copy link

codecov bot commented Jun 3, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.36%. Comparing base (95df455) to head (61aa6f9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tsl/src/nodes/skip_scan/planner.c 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8216      +/-   ##
==========================================
+ Coverage   82.29%   82.36%   +0.07%     
==========================================
  Files         256      256              
  Lines       48027    47999      -28     
  Branches    12117    12114       -3     
==========================================
+ Hits        39522    39536      +14     
- Misses       3644     3658      +14     
+ Partials     4861     4805      -56     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Fix dropped quals bug in skipscan, add changelog

Fix dropped quals bug in skipscan, address comments
@natalya-aksman natalya-aksman force-pushed the fix_dropped_index_quals_in_skipscan branch from 6934f20 to 61aa6f9 Compare June 3, 2025 18:47
@natalya-aksman natalya-aksman merged commit 9494ef8 into timescale:main Jun 3, 2025
54 of 60 checks passed
@natalya-aksman natalya-aksman deleted the fix_dropped_index_quals_in_skipscan branch June 3, 2025 21:32
timescale-automation pushed a commit that referenced this pull request Jun 3, 2025
Fixes: #8217
(cherry picked from commit 9494ef8)
timescale-automation pushed a commit that referenced this pull request Jun 3, 2025
Fixes: #8217
(cherry picked from commit 9494ef8)
natalya-aksman added a commit to natalya-aksman/timescaledb that referenced this pull request Jun 5, 2025
@philkra philkra mentioned this pull request Jun 11, 2025
philkra added a commit that referenced this pull request Jun 11, 2025
## 2.20.3 (2025-06-11)

This release contains bug fixes since the 2.20.2 release. We recommend
that you upgrade at the next available opportunity.

**Bugfixes**
* [#8107](#8107) Adjust
SkipScan cost for quals needing full scan of indexed data.
* [#8211](#8211) Fixed dump
and restore when chunk skipping is enabled.
* [#8216](#8216) Fix for
dropped quals bug in SkipScan.
* [#8230](#8230) Fix for
inserting into compressed data when a vectorized check is not available.
* [#8236](#8236) Fixed the
snapshot handling in background workers.

**Thanks**
* @ikaakkola for reporting that SkipScan is slow when non-index quals do
not match any tuples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Dropped quals in SkipScan cause incorrect results
4 participants