I'm trying to make a side input from a pcollection in apache beam with python.
This is my code:
from apache_beam.pvalue import AsList
locations_dim = p | beam.io.Read(beam.io.BigQuerySource(
query='SELECT a, b, c, d FROM test.testing_table')) |
beam.Map(format_apply)
AsList(locations_dim) | WriteToText(known_args.output)
(I apply WritToText in order to debug) But it raises the following error:
self.value = tuple(value)
TypeError: 'AsList' object is not iterable
Any help?