当 A 不产生任何输出时,有没有办法让 PTransform B 依赖于 PTransform A?或者我是否必须让 A 产生一个虚拟输出作为侧输入馈入 B?一个示例用例是我希望拥有以下管道的地方:
Z = read file
A = count lines in file, and throw error if there are no lines
B = do something with the file
我希望 B 仅在 A 完成后启动,但 A 不会产生任何对 B 有用的输出 PCollection。