apache / apache/beam

Writing to BigQuery raises a TypeError "GlobalWindow -> ._IntervalWindowBase"

Open
#20,632 3 comments 1 reaction 0 assignees View on GitHub
bigquery bug gcp io P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

I have a pipeline that reads from a PubSub topic, does some transforms and then writes to BigQuery. The exception message is this: `Cannot convert GlobalWindow to apache_beam.utils.windowed_value._IntervalWindowBase`

You can find the main part of the pipeline here [https://gist.github.com/PlugaruT/4666406bd8792b7b196dc1519c8885a2](https://gist.github.com/PlugaruT/4666406bd8792b7b196dc1519c8885a2)

The first part is basically reading from Pub/Sub and then I apply this PTranform.

And here is the gigantic stack trace: [https://gist.github.com/PlugaruT/52bf3834eec95fd5cc5779d3332e1433](https://gist.github.com/PlugaruT/52bf3834eec95fd5cc5779d3332e1433)

 

I've tried to downgrade to 2.24.0 version but this is still happening.

Also, I can't reproduce the exception locally when I run the pipeline with DirectRunner. It's happening only when running on Dataflow.

 

 

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

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.