Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
2.0.0
-
None
Description
Originally reported on Stackoverflow:
https://stackoverflow.com/questions/44314030/handling-empty-pcollections-with-bigquery-in-apache-beam
It looks like if there is no data to write, then WritePartitions will return a null destination, as explicitly stated in the comments:
But, the ConstantTableDestination doesn't turn that into the constant destination as the comment promises, instead it returns that `null` destination:
This leads to a null pointer error here since the `tableDestination` is that null result from calling `getTable`:
Attachments
Issue Links
- links to