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

Incompatibility: SAFE functions are not supported #94

Closed
2 of 3 tasks
apstndb opened this issue Sep 12, 2024 · 0 comments · Fixed by #232
Closed
2 of 3 tasks

Incompatibility: SAFE functions are not supported #94

apstndb opened this issue Sep 12, 2024 · 0 comments · Fixed by #232

Comments

@apstndb
Copy link
Contributor

apstndb commented Sep 12, 2024

This incompatibility is detected by #90.

Spec

https://cloud.google.com/spanner/docs/reference/standard-sql/functions-reference#safe_prefix

Additionally, SAFE_CAST is needed to be supported. #115

Reproducing input

CREATE TABLE T (
  id INT64,
  string_field STRING(MAX),
  gen BYTES(MAX) AS (SAFE.MD5(string_field)) STORED,
) PRIMARY KEY(id);

Current error

syntax error:testdata/generated_column.test:5:30: expected token: ), but: (

  5:    gen BYTES(MAX) AS (SAFE.MD5(string_field)) STORED,
                                   ^
@apstndb apstndb changed the title Inconpatibilities: SAFE functions are not supported Inconpatibility: SAFE functions are not supported Sep 13, 2024
@apstndb apstndb changed the title Inconpatibility: SAFE functions are not supported Incompatibility: SAFE functions are not supported Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant