Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use existing PubSub Subscription with Google-Provided PubSub to BigQuery Dataflow Template

I am trying to setup a Dataflow job using the google provided template PubSub to BigQuery. I see an option to specify the Cloud Pub/Sub input topic but I don't see any option to specify Pub/Sub input subscription in GCP console UI.

If I provide the topic, job would automatically create a subscription to read the messages from the provided topic. Problem with this is, the job will see only messages published to the topic after the Dataflow job has started. Anything published before to the same topic would be ignored.

I don't have any complex transformations to do in my job. So the google provided template would work for me out of the box. But the lack of ability to specify my own subscription is bothering me. I don't want to setup a custom job pipeline just for this reason. Anybody know if there is a workaround for this?

like image 988
Code Geass Avatar asked Oct 26 '25 11:10

Code Geass


1 Answers

That's not currently supported. However, it's a great use case and is on the Google Cloud Team's radar.

like image 69
blasteye Avatar answered Oct 28 '25 04:10

blasteye



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!