Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add more idiomatic way to insert ARRAY<BYTES> data #1550

Merged
merged 4 commits into from
Feb 28, 2022

Conversation

stephaniewang526
Copy link
Contributor

Towards b/219375453

@stephaniewang526 stephaniewang526 requested review from a team and shollyman February 25, 2022 18:04
@product-auto-label product-auto-label bot added the api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. label Feb 25, 2022
@stephaniewang526 stephaniewang526 marked this pull request as draft February 25, 2022 18:53
@stephaniewang526 stephaniewang526 added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 25, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 25, 2022
@stephaniewang526 stephaniewang526 marked this pull request as ready for review February 28, 2022 15:45
if (val instanceof JSONArray) {
if (val instanceof byte[]) {
protoMsg.addRepeatedField(fieldDescriptor, val);
} else if (val instanceof JSONArray) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[no action required in this PR] It's a bummer to still see org.json used as a dependency here. I assume we have an issue tracking a migration to Gson?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, for sure -- b/216657461 is tracking this work.

@stephaniewang526 stephaniewang526 merged commit 3ae4038 into googleapis:main Feb 28, 2022
gcf-merge-on-green bot pushed a commit that referenced this pull request Feb 28, 2022
🤖 I have created a release *beep* *boop*
---


## [2.10.0](v2.9.1...v2.10.0) (2022-02-28)


### Features

* add trace_id for Read API ([#1544](#1544)) ([5a92ade](5a92ade))


### Bug Fixes

* Add a e2e test on byte string array and remove a impossible case for byte array conversion ([#1546](#1546)) ([adcb9bb](adcb9bb))
* add more idiomatic way to insert ARRAY<BYTES> data ([#1550](#1550)) ([3ae4038](3ae4038))
* remove bigquery.readonly auth scope ([#1543](#1543)) ([a70ae45](a70ae45))


### Dependencies

* update actions/github-script action to v6 ([#1533](#1533)) ([370c3b5](370c3b5))
* update dependency com.google.cloud:google-cloud-bigquery to v2.9.0 ([#1538](#1538)) ([43446b2](43446b2))


### Documentation

* **tutorials:** Add STRUCT column to tutorial ([#1534](#1534)) ([9595dab](9595dab))
* **tutorials:** Call append asynchronously instead of blocking ([#1542](#1542)) ([c777e23](c777e23))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants