memefish icon indicating copy to clipboard operation
memefish copied to clipboard

Incompatibility: SAFE functions are not supported

Open apstndb opened this issue 5 months ago • 0 comments

This incompatibility is detected by #90.

Spec

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

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 avatar Sep 12 '24 16:09 apstndb