Skip to content

Disallow creating VECTOR indexes on nullable columns#3429

Merged
nicktobey merged 3 commits intomainfrom
nicktobey-claude/agent-007
Feb 16, 2026
Merged

Disallow creating VECTOR indexes on nullable columns#3429
nicktobey merged 3 commits intomainfrom
nicktobey-claude/agent-007

Conversation

@nicktobey
Copy link
Copy Markdown
Contributor

Vector indexes require NOT NULL columns, similar to spatial indexes. Previously, creating a vector index on a nullable column was silently accepted, which could cause runtime panics if any of the elements were NULL.

This adds validation in both the analyzer (CREATE TABLE) and DDL execution (CREATE INDEX / ALTER TABLE) paths, returning a clear error message.

nicktobey and others added 3 commits February 13, 2026 04:45
Vector indexes require NOT NULL columns, similar to spatial indexes.
Previously, creating a vector index on a nullable column was silently
accepted, which could lead to unexpected behavior. This adds validation
in both the analyzer (CREATE TABLE) and DDL execution (CREATE INDEX /
ALTER TABLE) paths, returning a clear error message.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@elianddb elianddb left a comment

Choose a reason for hiding this comment

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

lgtm!

@nicktobey nicktobey merged commit 35a3519 into main Feb 16, 2026
8 checks passed
@nicktobey nicktobey deleted the nicktobey-claude/agent-007 branch February 16, 2026 22:03
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