Skip to content

fix: add retry behavior documentation to insertall interface to clarify the behavior - #14058

Merged
GaoleMeng merged 6 commits into
googleapis:mainfrom
GaoleMeng:main
Aug 12, 2026
Merged

fix: add retry behavior documentation to insertall interface to clarify the behavior#14058
GaoleMeng merged 6 commits into
googleapis:mainfrom
GaoleMeng:main

Conversation

@GaoleMeng

Copy link
Copy Markdown
Contributor

No description provided.

@GaoleMeng
GaoleMeng requested review from a team as code owners August 12, 2026 20:21

@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 updates the Javadoc for the insertAll method in BigQuery.java to document retry behavior and transient error handling when insert IDs are not provided. The reviewer suggested separating this explanation into its own paragraph before the code example to improve readability.

Comment on lines +1357 to +1360
* <p>Example of inserting rows into a table without running a load job.
* To prevent duplicate rows, this method does not perform automatic retries unless
* insert IDs are provided. Transient service errors (such as UNAVAILABLE) may be thrown and
* should be handled by the caller when insert IDs are not provided.

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.

medium

The retry behavior explanation is currently placed directly inside the paragraph describing the example, interrupting the flow between the example description and the actual code block. Separating the retry behavior note into its own paragraph before the example improves readability and structure.

Suggested change
* <p>Example of inserting rows into a table without running a load job.
* To prevent duplicate rows, this method does not perform automatic retries unless
* insert IDs are provided. Transient service errors (such as UNAVAILABLE) may be thrown and
* should be handled by the caller when insert IDs are not provided.
* <p>To prevent duplicate rows, this method does not perform automatic retries unless
* insert IDs are provided. Transient service errors (such as UNAVAILABLE) may be thrown and
* should be handled by the caller when insert IDs are not provided.
*
* <p>Example of inserting rows into a table without running a load job.

@GaoleMeng GaoleMeng changed the title fix: retry behavior documentation on insertall interface to clarify the behavior fix: add retry behavior documentation to insertall interface to clarify the behavior Aug 12, 2026
@GaoleMeng
GaoleMeng enabled auto-merge (squash) August 12, 2026 23:23
@GaoleMeng
GaoleMeng merged commit 1b8f9e3 into googleapis:main Aug 12, 2026
208 of 209 checks passed
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.

2 participants