Skip to content

spanner/spansql: some DDL syntax of ALTER CHANGE STREAM is missing #7428

@toga4

Description

@toga4

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"

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the Spanner API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions