Skip to content

Spanner search ddl#1843

Open
shixiao-coder wants to merge 9 commits intodatacommonsorg:masterfrom
shixiao-coder:spanner-search-DDL
Open

Spanner search ddl#1843
shixiao-coder wants to merge 9 commits intodatacommonsorg:masterfrom
shixiao-coder:spanner-search-DDL

Conversation

@shixiao-coder
Copy link
Copy Markdown

This PR added the statements to do Spanner vector search and related files and tests.

  • statements.go: the core DDL code to do vector search and return DCID, name and cosine similarity score
  • query.go/query_builder.go: the logic to invoke DDL
  • tests: 1) creating DDL query 2) mock query test

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds vector search capabilities to the Spanner client, including embedding retrieval and similarity search methods, along with corresponding SQL statements, models, and tests. Feedback identifies a compilation error due to mismatched mock method names and a logic discrepancy in the SQL ORDER BY clause within the golden tests. Improvements are also suggested for error message clarity and the parameterization of hardcoded search configurations.

Comment thread internal/server/spanner/golden/datasource_test.go
Comment thread internal/server/spanner/golden/query_builder/vector_search_node.sql Outdated
Comment thread internal/server/spanner/query.go Outdated
Comment thread internal/server/spanner/statements.go Outdated
@shixiao-coder shixiao-coder requested a review from clincoln8 April 13, 2026 17:59
@shixiao-coder shixiao-coder requested a review from n-h-diaz April 15, 2026 14:04
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