Abacn commented on issue #36735: URL: https://github.com/apache/beam/issues/36735#issuecomment-3543095293
The problem in Beam side is that BigQueryIO Avro Row writer is using the output schema (BigQuery TableSchema) to construct Avro schema: https://github.com/apache/beam/blob/ce58563ffd98717f1c7ccb19227244f5b7ca5365/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/RowWriterFactory.java#L144 but the data is a Beam Row with a Beam Schema: https://github.com/apache/beam/blob/ce58563ffd98717f1c7ccb19227244f5b7ca5365/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/PrepareWrite.java#L78 both inputValue and outputValue are Beam Row here However, Beam Schema and BigQuery TableSchema doesn't have 1:1 mapping. In particular, BigQuery has only one integer type that is INT64 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
