docs(bigquery): add arrow default write sample - #6512
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new Arrow default stream writer example for BigQuery, including the necessary dependencies and integration tests. The review suggests optimizing the schema serialization process by moving it outside the loop, refactoring make_batch to accept the pre-calculated schema length, and properly scoping the StreamWriter to address potential borrow checker issues while documenting safety invariants.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6512 +/- ##
=======================================
Coverage 96.39% 96.40%
=======================================
Files 301 301
Lines 84762 84762
=======================================
+ Hits 81706 81713 +7
+ Misses 3056 3049 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dbolduc
force-pushed
the
bq-write-arrow-sample
branch
from
August 23, 2026 05:16
d8db144 to
3301ee8
Compare
dbolduc
marked this pull request as ready for review
August 23, 2026 05:27
dbolduc
force-pushed
the
bq-write-arrow-sample
branch
from
August 24, 2026 00:48
3f8ccd6 to
3a90a26
Compare
alvarowolfx
approved these changes
Aug 24, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Write the sample for
bigquerystorage_streamwriter_default_arrow.This corresponds to https://docs.cloud.google.com/bigquery/docs/write-api-streaming#java_3
Related to #5741