From afdc4407fd973a2b7ba7b38496bf29a7e9ec85ef Mon Sep 17 00:00:00 2001 From: git-hulk Date: Thu, 15 Aug 2024 14:26:19 +0800 Subject: [PATCH] Add more comments --- parser.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parser.go b/parser.go index e1ef3324..b2352981 100644 --- a/parser.go +++ b/parser.go @@ -2492,6 +2492,11 @@ func (p *Parser) parseCreateVectorIndex(pos token.Pos) *ast.CreateVectorIndex { p.expect("(") columnName := p.parseIdent() p.expect(")") + + // It only allows `WHERE column_name IS NOT NULL` for now, but we still relax the condition + // by reusing the `parseWhere` function for sake of it may be extended more conditions in the future. + // + // Reference: https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#vector_index_statements where := p.tryParseWhere() options := p.parseVectorIndexOptions()