Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

feat: provide sample code for row-level error handling#1863

Merged
yirutang merged 2 commits into
googleapis:mainfrom
agrawal-siddharth:rowErrorSampleCode
Nov 14, 2022
Merged

feat: provide sample code for row-level error handling#1863
yirutang merged 2 commits into
googleapis:mainfrom
agrawal-siddharth:rowErrorSampleCode

Conversation

@agrawal-siddharth

Copy link
Copy Markdown
Contributor

No description provided.

@agrawal-siddharth agrawal-siddharth requested review from a team and shollyman October 31, 2022 18:36
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Oct 31, 2022
@generated-files-bot

Copy link
Copy Markdown

Warning: This pull request is touching the following templated files:

  • samples/snippets/pom.xml

@product-auto-label product-auto-label Bot added api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. samples Issues that are directly related to samples. labels Oct 31, 2022
@yirutang yirutang requested a review from mhlgio October 31, 2022 20:33
// Retry the remaining valid rows.
if (dataNew.length() > 0) {
try {
this.parent.append(new AppendContext(dataNew, 0));

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.

Is there a way to start another thread and do this append? Currently this append can block waiting for inflight limit...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Both retries and row-errors are now handled by calls to append() made from a separate thread.

@shollyman shollyman requested review from Neenu1995 and removed request for shollyman November 6, 2022 19:08
@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 14, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 14, 2022
@yirutang yirutang merged commit 027c5bb into googleapis:main Nov 14, 2022
@agrawal-siddharth agrawal-siddharth deleted the rowErrorSampleCode branch November 18, 2022 00:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. samples Issues that are directly related to samples. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants