beam
beam copied to clipboard
Support Map in BQ for StorageWrites API for Beam Rows
Currently, BigQuery table schema utility and the implementation for StorageWrites for Beam Rows does not support sending rows with properties of type Map or array of Map as part of their schema.
This PR adds that functionality transforming the Map into a Message type which contains two fields, key and value, respecting the types coming from the Row schema while mimicking the behavior when using TableRows to the BigQueryIO PTransform.
Copied from #22179 since it got closed after inactivity for long period (and I can not re-open it).
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] Mention the appropriate issue in your description (for example:
addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead. - [ ] Update
CHANGES.md
with noteworthy changes. - [ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.
See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.