请确保使用WriteDisposition.WRITE_EMPTY选项,以便当输入集为空时也将空表写入BigQuery。
以下是一个示例:
p .apply(...) .apply(BigQueryIO.writeTableRows() .to(tableSpec) .withSchema(...)) .withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_EMPTY)
上一篇:ApacheBeamRowCoderissueorg.apache.beam.sdk.Pipeline$PipelineExecutionException:java.lang.IllegalStateException
下一篇:ApacheBeam如何返回多个输出?