apache/beam

Trigger example in the cookbook failed to run on Dataflow

Open

#18.767 geöffnet am 3. Juni 2022

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (4.097 Forks)batch import
P3bugexamplesgood first issuejava

Repository-Metriken

Stars
 (7.313 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T) (243 gemergte PRs in 30 T)

Beschreibung

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. Original Jira may contain additional context. Reported by: Zhaozhi.

Contributor Guide