Skip to content

Handle constant values in VAM distinct#6805

Open
utafrali wants to merge 1 commit intobrimdata:mainfrom
utafrali:fix/issue-6803-sql-panic-in-vam-distinct
Open

Handle constant values in VAM distinct#6805
utafrali wants to merge 1 commit intobrimdata:mainfrom
utafrali:fix/issue-6803-sql-panic-in-vam-distinct

Conversation

@utafrali
Copy link
Copy Markdown

@utafrali utafrali commented Apr 7, 2026

Fixes #6803

Running COUNT(DISTINCT 1) was panicking in VAM. The issue was that the distinct operator wasn't handling Const vectors, it only expected View or Array. Added the Const case and improved the panic message to include the actual type. Added a test case to cover this.

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.

SQL: panic in vam distinct

1 participant