-
Notifications
You must be signed in to change notification settings - Fork 1.5k
spanner/spansql: some DDL syntax of ALTER CHANGE STREAM is missing #7428
Copy link
Copy link
Closed
Labels
api: spannerIssues related to the Spanner API.Issues related to the Spanner API.triage meI really want to be triaged.I really want to be triaged.
Description
Client
Spanner spansql
Environment
Go Playground
Go Environment
Go 1.19
Code
e.g.
package main
import (
"fmt"
"cloud.google.com/go/spanner/spansql"
)
func main() {
fmt.Println(spansql.ParseDDL("ddl", "ALTER CHANGE STREAM csname SET FOR ALL"))
fmt.Println(spansql.ParseDDL("ddl", "ALTER CHANGE STREAM csname SET FOR Test, Singers(Name)"))
fmt.Println(spansql.ParseDDL("ddl", "ALTER CHANGE STREAM csname DROP FOR ALL"))
}https://go.dev/play/p/wdaRTF8np11
Expected behavior
Parses
Actual behavior
<nil> ddl:1.31: got "\"FOR\"", expected OPTIONS
<nil> ddl:1.31: got "\"FOR\"", expected OPTIONS
<nil> ddl:1.27: got "DROP" while expecting "SET"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: spannerIssues related to the Spanner API.Issues related to the Spanner API.triage meI really want to be triaged.I really want to be triaged.