Skip to content

Incompatibility: SAFE functions are not supported #94

@apstndb

Description

@apstndb

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,
                                   ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions