BUG: Reuse a single Selection during table-format HDFStore.select reads#64430
Closed
BUG: Reuse a single Selection during table-format HDFStore.select reads#64430
Selection during table-format HDFStore.select reads#64430Conversation
Co-authored-by: jbrockmendel <8078968+jbrockmendel@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate issue #22082
BUG: Reuse a single Mar 6, 2026
Selection in HDFStore.select table reads
Copilot
AI
changed the title
BUG: Reuse a single
BUG: Reuse a single Mar 6, 2026
Selection in HDFStore.select table readsSelection during table-format HDFStore.select reads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repeated reads from table-format HDF keys were constructing selection state twice per
selectcall in the read path. This added unnecessary allocation/retention pressure and is consistent with the long-standing memory-growth behavior reported for repeated table reads.Read-path change
AppendableFrameTable.readnow creates oneSelectionand reuses it for both:_read_axes)process_axes)_read_axeswas updated to accept an existingSelectioninstead of rebuilding fromwhere/start/stop.API/internal contract cleanup
Table._read_axessignature changed from(where, start, stop)to(selection), making ownership of selection state explicit and avoiding duplicate construction.Regression coverage
pandas/tests/io/pytables/test_select.pythat monkeypatchesSelection.__init__and asserts only one initialization pertemp_hdfstore.select("df"), while verifying result equality.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.