cockroachdb / cockroachdb/cockroach

vector: array_agg can exceed maximum number of dimensions

Open
#146,607 2 comments 0 reactions 0 assignees View on GitHub
A-vector-index branch-release-24.3 C-bug O-qa T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Found when running the regress suite from `pgvector` (`cast.sql` file).

The following query results in error in PG but succeed in CRDB:
```sql
-- PG returns '54000: vector cannot have more than 16000 dimensions'
SELECT array_agg(n)::vector FROM generate_series(1, 16001) n;
```
We hard-coded the same maximum number of dimensions, so this could perhaps lead to undefined behavior down the line.

Jira issue: CRDB-50614

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.