8000 Abstract SbqNode in preparation for adding a labeled variant by tjgreen42 · Pull Request #203 · timescale/pgvectorscale · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Abstract SbqNode in preparation for adding a labeled variant #203

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

Merged
merged 6 commits into from
Mar 7, 2025

Conversation

tjgreen42
Copy link
Contributor
@tjgreen42 tjgreen42 commented Feb 27, 2025

This is a pure refactoring change to introduce a layer of abstraction around SBQ nodes so that we can introduce a labeled variant in a coming PR.

The basic idea is for SbqNode to become an enum wrapper class around the concrete implementations, currently just ClassicSbqNode. Since SbqNode has a bunch of derived classes and traits, I had to introduce wrappers for those too, in addition to tweaking some abstractions. (It gets a little ugly, and I'm open to suggestions to find ways to simplify. I did experiment with an alternate approach, which was to add the SBQ node type as a parameter in SbqSpeedupStorage, but this turned out to be equally messy, due to the same plethora of derived traits and classes associated with SbqNode.)

Test strategy: existing unit tests. No new functionality added.

@tjgreen42 tjgreen42 requested a review from a team as a code owner February 27, 2025 16:08
@tjgreen42 tjgreen42 marked this pull request as draft February 27, 2025 16:08
@tjgreen42 tjgreen42 changed the title Wrap SbqNode in preparation for adding a labeled variant Abstract SbqNode in preparation for adding a labeled variant Feb 28, 2025
@tjgreen42 tjgreen42 marked this pull request as ready for review February 28, 2025 00:28
@tjgreen42 tjgreen42 requested review from cevian and syvb February 28, 2025 00:28
Copy link
Collaborator
@cevian cevian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial questions

Copy link
Collaborator
@cevian cevian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to change plain->classic in a bunch of places. Otherwise LGTM

@tjgreen42 tjgreen42 requested a review from cevian March 5, 2025 22:50
@tjgreen42 tjgreen42 merged commit 0763824 into main Mar 7, 2025
23 checks passed
@tjgreen42 tjgreen42 deleted the tj/abstract_sbq_node branch March 7, 2025 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0