我正在尝试使用python从apache beam中的pcollection进行侧输入。
这是我的代码:
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)
(我应用WritToText进行调试) 但它引发了以下错误:
self.value = tuple(value)
TypeError: 'AsList' object is not iterable
任何帮助?