apache / apache/beam

Trigger example in the cookbook failed to run on Dataflow

Open
#18,767 2 comments 0 reactions 1 assignee Claimed by @RushabhRatnaparkhi View on GitHub
bug examples good first issue java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

The example org.apache.beam.examples.cookbook.TriggerExample failed to run on Dataflow. Big query returns failure code 409 indicating it's trying to write to an non-empty table but WriteDisposition is set to WRITE_EMPTY (the default value). The example fails with this error even if the output table does not exist before the example is run. 

In fact, the four pipelines corresponding to the four trigger types write to the same table. The pipeline that finishes first will create the table and insert data into it. But the remaining ones can only _append_ to that table. Hence, the problem can be avoided by setting WriteDisposition to WRITE_APPEND.

Imported from Jira [BEAM-3844](https://issues.apache.org/jira/browse/BEAM-3844). Original Jira may contain additional context.
Reported by: Zhaozhi.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.