cloudspannerecosystem / memefish

memefish is the foundation to analyze Spanner SQL
https://cloudspannerecosystem.dev/memefish/
MIT License
76 stars 19 forks source link

Support vector_length of ARRAY schema type #140

Open apstndb opened 4 weeks ago

apstndb commented 4 weeks ago

https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#arrays

$ go run ./tools/parse -mode ddl "CREATE TABLE Singers(id INT64, embedding ARRAY<FLOAT32>(vector_length=>128))  
PRIMARY KEY(id)"
2024/10/17 20:49:51 syntax error::1:56: expected token: ), but: (

  1:  CREATE TABLE Singers(id INT64, embedding ARRAY<FLOAT32>(vector_length=>128))
                                                             ^
exit status 1