beam icon indicating copy to clipboard operation
beam copied to clipboard

Support Map in BQ for StorageWrites API for Beam Rows

Open prodriguezdefino opened this issue 5 months ago • 7 comments

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, comment fixes #<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)

Build python source distribution and wheels Python tests Java tests Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

prodriguezdefino avatar Sep 20 '24 06:09 prodriguezdefino