I have a change stream that's watching all my Spanner tables. A dataflow job is listening to the change stream, and writes my data into BigQuery.
However, when adding new tables to Spanner, the Dataflow pipeline seems to not pick up on the new watched table.
I am using the default (off the shelf) Spanner to BigQuery - Dataflow job [--template-file-gcs-location=gs://dataflow-templates-us-central1/2023-08-01-00_RC00/flex/Spanner_Change_Streams_to_BigQuery
]
ALTER CHANGE STREAM AllStream SET FOR ALL;
successfully.However, my new table is not being replicated (not showing up in my BigQuery dataset). Any suggestion on what else I could try?
That is an excellent point you are making and your observations are corerct. The Spanner change streams to BigQuery
Dataflow template does not apply schema changes. Instead, the recommended workflow is to:
Let me know if that worked for you!