You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "nikitagrover19 (via GitHub)" <gi...@apache.org> on 2026/08/04 17:53:09 UTC

Re: [I] [Bug]: WriteToBigQuery FILE_LOADS method should support writing schema'd PCollections. [beam]

nikitagrover19 commented on issue #28162:
URL: https://github.com/apache/beam/issues/28162#issuecomment-5182694962

   Hi @robertwb, I'd like to pick this up.
   
   Dug into the code a bit, WriteToBigQuery's FILE_LOADS path currently requires an explicit schema (it only falls back to the destination table's existing schema, which doesn't help for new tables with CREATE_IF_NEEDED). StorageWriteToBigQuery already auto-infers schema from Row-typed PCollections via schema_from_element_type(), so I'm planning to bring that same pattern over to FILE_LOADS, plus a small helper to convert the inferred Beam schema into BQ's TableSchema format (JSON/Avro writers need plain dicts + BQ-style schemas, not Beam's schema proto).
   
   Let me know if this sounds like the right direction before I start on the PR.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org