Skip to content

Support Partitioned DML with statement hints #193

@apstndb

Description

@apstndb

DMLs can be prefixed by statement hints.

https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax#delete-statement

[statement_hint_expr] UPDATE table_name [table_hint_expr] [[AS] alias]

https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax#update-statement

[statement_hint_expr] UPDATE table_name [table_hint_expr] [[AS] alias]

It seems that only permitted statement hint is PDML_MAX_PARALLELISM for Partitioned DML, so only we need is relaxing pattern of pdmlRe.

pdmlRe = regexp.MustCompile(`(?is)^PARTITIONED\s+((?:INSERT|UPDATE|DELETE)\s+.+$)`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions