Skip to content

Commit

Permalink
Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Aug 15, 2024
1 parent c4ed04f commit afdc440
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit afdc440

Please sign in to comment.