Skip to content

Parse SQL Server 2025 vector search and vector indexes - #72

Merged
kyleconroy merged 1 commit into
claude/project-thread-4tipff-jsonfrom
claude/project-thread-4tipff-vector
Dec 1, 2026
Merged

kyleconroy merged 1 commit into
claude/project-thread-4tipff-jsonfrom
claude/project-thread-4tipff-vector

Conversation

@kyleconroy

Copy link
Copy Markdown
Collaborator

Requested by Kyle · project thread

Stacked on #71 (base: claude/project-thread-4tipff-json) → #70 → #69.

Summary

Parses the SQL Server 2025 vector syntax covered by tests added in #69:

  • VECTOR_SEARCH(TABLE = t [AS a], COLUMN = c, SIMILAR_TO = expr, METRIC = '...' [, TOP_N = n]) [WITH (FORCE_ANN_ONLY)] [AS alias] → VectorSearchTableReference
  • CREATE VECTOR INDEX name ON t (col) [WITH (METRIC = ..., TYPE = ..., MAXDOP = ...)] [ON filegroup] → CreateVectorIndexStatement, VectorMetricIndexOption, VectorTypeIndexOption (ScriptDom spans these two options on the keyword only)

Enables 8 todo tests (VectorSearchApproximate/CrossApply/OptionalTopN, VectorIndex and baselines). VectorFunctionTests170 also needs AI_GENERATE_EMBEDDINGS, which comes in the next PR.

Test plan

  • go test ./...
  • go test ./parser/... -check-todo enabled the 8 tests

Generated by Claude Code

- VECTOR_SEARCH(TABLE = ..., COLUMN = ..., SIMILAR_TO = ..., METRIC = ...
  [, TOP_N = ...]) [WITH (FORCE_ANN_ONLY)] -> VectorSearchTableReference
- CREATE VECTOR INDEX with METRIC / TYPE options and ON filegroup

Enables 8 todo tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LuRZ4JQ53XPMqUY3Yc1vdv
@kyleconroy kyleconroy self-assigned this Dec 1, 2026
@kyleconroy
kyleconroy added this pull request to stack #73 December 1, 2026 06:14
@kyleconroy
kyleconroy merged commit 38d4878 into main Dec 1, 2026
1 check passed
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