I want to write a PCollection
to multiple BigQuery tables, with different tables based on the contents of the PCollection
and different schemas, the contents of which arrive via a side input.
I noted this in the docs for DynamicDestinations
:
An instance of DynamicDestinations can also use side inputs using sideInput(PCollectionView). The side inputs must be present in getSideInputs(). Side inputs are accessed in the global window, so they must be globally windowed.
How is this be practically implemented with v2.0.0 of the Apache Beam BigQueryIO API?