This repository was archived by the owner on Feb 24, 2026. It is now read-only.
fix: add more idiomatic way to insert ARRAY<BYTES> data#1550
Merged
stephaniewang526 merged 4 commits intogoogleapis:mainfrom Feb 28, 2022
Merged
fix: add more idiomatic way to insert ARRAY<BYTES> data#1550stephaniewang526 merged 4 commits intogoogleapis:mainfrom
stephaniewang526 merged 4 commits intogoogleapis:mainfrom
Conversation
Towards b/219375453
yirutang
approved these changes
Feb 28, 2022
tswast
approved these changes
Feb 28, 2022
| if (val instanceof JSONArray) { | ||
| if (val instanceof byte[]) { | ||
| protoMsg.addRepeatedField(fieldDescriptor, val); | ||
| } else if (val instanceof JSONArray) { |
There was a problem hiding this comment.
[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?
Contributor
Author
There was a problem hiding this comment.
Yeah, for sure -- b/216657461 is tracking this work.
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Towards b/219375453