Spanner to Spanner delete #62
Answered
by
orfeon
ascarhon-atahujaev
asked this question in
Q&A
-
Is there an option to run Flex templates for clearing spanner tables? In classic dataflow templates there was a SpannerToSpannerDelete custom template. |
Beta Was this translation helpful? Give feedback.
Answered by
orfeon
Jan 13, 2023
Replies: 1 comment
-
Sorry it could take me so long to notice this. Below is a sample configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
orfeon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry it could take me so long to notice this.
You can do this by specifying
DELETE
in themutationOp
parameter and set the primary keys inkeyFields
parameter.Below is a sample configuration.
https://github.com/mercari/DataflowTemplate/blob/master/examples/spanner-to-spanner-delete.json