-
Notifications
You must be signed in to change notification settings - Fork 84
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
Conversation
Towards b/219375453
if (val instanceof JSONArray) { | ||
if (val instanceof byte[]) { | ||
protoMsg.addRepeatedField(fieldDescriptor, val); | ||
} else if (val instanceof JSONArray) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
🤖 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).
Towards b/219375453