Skip to content

docs(bigquery): add arrow default write sample - #6512

Merged
dbolduc merged 4 commits into
googleapis:mainfrom
dbolduc:bq-write-arrow-sample
Aug 24, 2026
Merged

docs(bigquery): add arrow default write sample#6512
dbolduc merged 4 commits into
googleapis:mainfrom
dbolduc:bq-write-arrow-sample

Conversation

@dbolduc

@dbolduc dbolduc commented Aug 23, 2026

Copy link
Copy Markdown
Member

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

@product-auto-label product-auto-label Bot added api: bigquery Issues related to the BigQuery API. samples Issues that are directly related to samples. labels Aug 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread src/bigquery/examples/src/write/arrow_default.rs
Comment thread src/bigquery/examples/src/write/arrow_default.rs Outdated
Comment thread src/bigquery/examples/src/write/arrow_default.rs
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.40%. Comparing base (102298f) to head (3a90a26).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbolduc
dbolduc force-pushed the bq-write-arrow-sample branch from d8db144 to 3301ee8 Compare August 23, 2026 05:16
@dbolduc
dbolduc marked this pull request as ready for review August 23, 2026 05:27
@dbolduc
dbolduc requested a review from a team as a code owner August 23, 2026 05:27
@dbolduc
dbolduc force-pushed the bq-write-arrow-sample branch from 3f8ccd6 to 3a90a26 Compare August 24, 2026 00:48
@dbolduc
dbolduc merged commit af8ce26 into googleapis:main Aug 24, 2026
42 checks passed
@dbolduc
dbolduc deleted the bq-write-arrow-sample branch August 24, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants