feat(volc_mysql): add VolcMySQL backend with HNSW vector index support - #804
Merged
Conversation
Contributor
Author
|
/assign @XuanYang-cn |
Collaborator
|
@FishMage Please fix the ut to pass the github actions |
FishMage
force-pushed
the
volc_mysql
branch
2 times, most recently
from
July 3, 2026 03:00
53723e4 to
3856312
Compare
Collaborator
|
@FishMage THe code check still fails, PTAL |
Add a VectorDB backend for VolcMySQL (native VECTOR type and HNSW index) over the MySQL wire protocol via mysql-connector-python: - client, config, and Click CLI command; registered in the DB enum and CLI - per-thread connections (thread_safe=False, one connection per worker) - NonFilter and NumGE filter support via prepared SQL templates - binary float32 vector path with per-connection auto-probe fallback to to_vector() - unit tests for TSV encoding, config, filters, and init teardown
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FishMage, XuanYang-cn The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Add a vector database backend for VolcMySQL (Volcano Engine MySQL with native VECTOR type and HNSW vector index), connecting via mysql-connector-python over the MySQL wire protocol.
Components:
VolcMySQLHNSWRegistration:
Binary VECTOR path with auto-probe fallback:
_binaryintroducer on query), avoiding to_vector() text parsing and Python str() formatting;_binaryliterals stay constant-foldable so the HNSW index scan is preservedTests: tests/test_volc_mysql_encoder.py covers binary and text TSV encoding.