I'm have a DataFlow pipeline which consumes JSON messages from Cloud Pub/Sub, converts them to Avro and stores them to Google Cloud Storage.
Is there a way to have DataFlow store each Avro object to a different folder in GCS according to a certain JSON field, if its value can be actually anything?
The goal for this folder structure is to then use PubSub notifications with Cloud Functions to load each resulted file to a different BigQuery table.