I have 2 PCollection
s:
PCollection<List<String>> ListA =
pipeline.apply("getListA", ParDo.of(new getListA()))
PCollection<List<String>> ListB =
pipeline.apply("getListB", ParDo.of(new getListB()))
ListA
contains:
["1","2","3"]
ListB
contains:
["A","B","C"]
How do I end up with a PCollection
that contains:
[
["A","1"],["A","2"],["A","3"],
["B","1"],["B","2"],["B","3"],
["C","1"],["C","2"],["C","3"],
]
My search has pointed me to:
How to do a cartesian product of two PCollections in Dataflow?
But this is dealing with KV using coGroupby with 2 outputs. It's possible that coGroupby can be used to create the cartesian product of 2 lists but I am not seeing it.