I am using this code to read data from Google Cloud Pubsub:
pubsubmessage := pubsubio.Read(s, project, *input, &pubsubio.ReadOptions{Subscription: sub.ID()})
and this code to write to my bigquery data set :
bigqueryio.Write(s, project, *output, pubsubmessage)
I get the following error:
panic: schema type must be struct: []uint8
unable to convert []uint8/byte to schema type must be struct`
Please help me.
I am following these examples:
https://github.com/apache/beam/blob/master/sdks/go/examples/streaming_wordcap/wordcap.go