Open apstndb opened 1 month ago
Thank you for catching this.
PARTITIONED
statement is a spanner-cli specific statement, so it's a little bit tricky to decide where the statement hint should be placed.
@{hint} PARTITIONED UPDATE ...
PARTITIONED @{hint} UPDATE ...
It's possible that other prefixes will be supported in front of DML syntax, so I think option 2 might be better. Then we can think of the PARTITIONED
statement syntax as PARTITIONED [DML statement]
.
DMLs can be prefixed by statement hints.
https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax#delete-statement
https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax#update-statement
It seems that only permitted statement hint is
PDML_MAX_PARALLELISM
for Partitioned DML, so only we need is relaxing pattern ofpdmlRe
.https://github.com/cloudspannerecosystem/spanner-cli/blob/e44e60f428b4206024673bc4a36955e8981bc17a/statement.go#L105