Skip to content

docs(bigquery): add QueryArrow code sample and document JDK 17+ JVM requirements - #14437

Open
jinseopkim0 wants to merge 2 commits into
mainfrom
feat-bigquery-query-arrow-samples
Open

jinseopkim0 wants to merge 2 commits into
mainfrom
feat-bigquery-query-arrow-samples

Conversation

@jinseopkim0

Copy link
Copy Markdown
Contributor

Adds a QueryArrow code sample demonstrating zero-copy VectorSchemaRoot streaming with try-with-resources. Also documents the required --add-opens JVM flag in queryArrow Javadoc for applications running on JDK 17+.

@jinseopkim0

Copy link
Copy Markdown
Contributor Author

@gemini-code-assist review

@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 code sample, QueryArrow.java, along with its integration tests, demonstrating how to stream Apache Arrow VectorSchemaRoot batches directly using BigQuery. It also updates the README and adds Javadoc documentation to the BigQuery interface detailing the JVM requirements (Java 16+) for Apache Arrow's memory allocator. Feedback on the changes suggests avoiding swallowing InterruptedException in the new sample and instead restoring the thread's interrupted status.

Comment thread java-bigquery/samples/snippets/src/main/java/com/example/bigquery/QueryArrow.java Outdated
@jinseopkim0

Copy link
Copy Markdown
Contributor Author

@gemini-code-assist review

@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 adds a new code sample, QueryArrow.java, along with its integration test and README documentation, demonstrating how to query BigQuery and stream Apache Arrow VectorSchemaRoot batches. It also updates the Javadoc in BigQuery.java to document the JVM requirements for running Apache Arrow on Java 16+. Feedback on the new sample suggests properly handling InterruptedException by restoring the thread's interrupted status instead of swallowing it.

@jinseopkim0

Copy link
Copy Markdown
Contributor Author

@gemini-code-assist review

@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 code sample, QueryArrow.java, along with its integration test, QueryArrowIT.java, demonstrating how to query BigQuery and stream Apache Arrow vectors. It also updates the README.md to document the new sample and adds Javadoc warnings to the BigQuery interface explaining the JVM options required for Apache Arrow on Java 16+. There are no review comments to address, and I have no further feedback to provide.

@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 code sample, QueryArrow.java, and its corresponding integration test, QueryArrowIT.java, demonstrating how to execute queries and stream Apache Arrow VectorSchemaRoot batches. It also updates the README.md to document the new sample and adds Javadoc to the BigQuery interface detailing the JVM arguments required for Apache Arrow on Java 16+. There are no review comments, and I have no feedback to provide.

@jinseopkim0

Copy link
Copy Markdown
Contributor Author

@gemini-code-assist review

@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 adds a new code sample, QueryArrow.java, and its corresponding integration test, QueryArrowIT.java, to demonstrate querying BigQuery and streaming Apache Arrow VectorSchemaRoot batches. Additionally, it updates the README.md to document the new sample and adds Javadoc comments to BigQuery.java explaining the JVM requirements (specifically the --add-opens option) when using Apache Arrow on Java 16+. There are no review comments, and I have no feedback to provide.

@jinseopkim0
jinseopkim0 marked this pull request as ready for review September 18, 2026 22:06
@jinseopkim0
jinseopkim0 requested review from a team as code owners September 18, 2026 22:06
@snippet-bot

snippet-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@jinseopkim0
jinseopkim0 enabled auto-merge (squash) September 18, 2026 22:06
@jinseopkim0
jinseopkim0 requested a review from lqiu96 September 18, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant