googleapis / googleapis/google-cloud-go

spanner: spansql.ParseDDL support for ARRAY<FLOAT32>

Open
#11,106 1 comment 1 reaction 1 assignee Claimed by @harshachinta View on GitHub
api: spanner triage me
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

## Client

Spanner

## Expected vs actual behavior

We use the GoLang Spanner client to manage migrations of our Spanner DDL.
Spanner supports ARRAY for Vector Search which is half the byte cost of ARRAY.
We'd like to use a FLOAT32 but https://github.com/googleapis/google-cloud-go/blob/main/spanner/spansql/parser.go#L3202 does not support parsing ARRAY as valid DDL.

## Additional context

Easy test, this works on spanner but not with spansql.ParseDDL
```
CREATE TABLE vectorTest (
id STRING(MAX),
vector ARRAY,
)
PRIMARY KEY (id);
```

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.