Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spanner/spansql: parseDDL does not support GENERATE_UUID #8594

Closed
egonvb opened this issue Sep 20, 2023 · 1 comment
Closed

spanner/spansql: parseDDL does not support GENERATE_UUID #8594

egonvb opened this issue Sep 20, 2023 · 1 comment
Assignees
Labels
api: spanner Issues related to the Spanner API. triage me I really want to be triaged.

Comments

@egonvb
Copy link

egonvb commented Sep 20, 2023

	sql := "CREATE TABLE Test ( " +
		"Id STRING(36) NOT NULL DEFAULT( GENERATE_UUID() )" +
		") PRIMARY KEY (Id);"
	ddl, err := spansql.ParseDDL("", string(sql))

results in following error

err :1.65: got "(" while expecting ")"

The parser looks unable to handle the generate_uuid function as default for the column.

@egonvb egonvb added the triage me I really want to be triaged. label Sep 20, 2023
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Sep 20, 2023
@egonvb egonvb changed the title spanner/spansql: spansql parseDDL does not support GENERATE_UUID spanner/spansql: parseDDL does not support GENERATE_UUID Sep 20, 2023
@rahul2393
Copy link
Contributor

Hello @egonvb, we already have a fix in pipeline to be released in 1.50.0 #8482.

@egonvb egonvb closed this as completed Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants