Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support withFormatRecordOnFailureFunction() for BigQuery STORAGE_WRITE_API and STORAGE_API_AT_LEAST_ONCE methods #31659

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

Amar3tto
Copy link
Contributor

@Amar3tto Amar3tto commented Jun 20, 2024

Fixes #31354


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@Amar3tto Amar3tto force-pushed the bigquery-storageapi-format-failure branch from d9e87e0 to e01f88c Compare June 20, 2024 12:27
@Amar3tto Amar3tto marked this pull request as ready for review June 20, 2024 13:28
@Amar3tto
Copy link
Contributor Author

R: @Abacn

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@Abacn
Copy link
Contributor

Abacn commented Jun 20, 2024

@liferoad liferoad requested a review from ahmedabu98 June 26, 2024 21:01
@Amar3tto
Copy link
Contributor Author

R: @ahmedabu98

@Amar3tto
Copy link
Contributor Author

@Abacn Could you please help with the review process?

@Abacn
Copy link
Contributor

Abacn commented Jul 12, 2024

Didn't get a chance to go through the change. I see the author of the FR @sarinasij is responsive. Would it be possible for you testing the change with your use case, to see if this unblocks you?

@Amar3tto
Copy link
Contributor Author

Amar3tto commented Aug 5, 2024

@ahmedabu98 Could you please review?

Copy link
Contributor

@ahmedabu98 ahmedabu98 left a comment

Choose a reason for hiding this comment

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

Forgive me for getting to this so late..

But LGTM! Code is clean and this change looks great, thank you!

.setPrimitiveBytes(
ByteString.copyFrom(Integer.toString(i).getBytes(StandardCharsets.UTF_8)))
.build();
List<Proto3SchemaMessages.Primitive> goodRows =
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: --> s/goodRows/inputRows

@ahmedabu98
Copy link
Contributor

CC @johnjcasey @AnandInguva I believe this does what y'all wanted to do in #31106

@ahmedabu98
Copy link
Contributor

@Amar3tto can we add a comment in CHANGES.md calling out this new feature?

@Amar3tto Amar3tto force-pushed the bigquery-storageapi-format-failure branch from e01f88c to 0739334 Compare August 12, 2024 16:28
@Amar3tto Amar3tto force-pushed the bigquery-storageapi-format-failure branch from 0739334 to 0a492b1 Compare August 12, 2024 16:33
@Amar3tto
Copy link
Contributor Author

@Amar3tto can we add a comment in CHANGES.md calling out this new feature?

Done

@Amar3tto
Copy link
Contributor Author

Run Java_GCP_IO_Direct PreCommit

@ahmedabu98 ahmedabu98 merged commit 7466803 into apache:master Aug 12, 2024
19 checks passed
reeba212 pushed a commit to reeba212/beam that referenced this pull request Dec 4, 2024
…E_API and STORAGE_API_AT_LEAST_ONCE methods (apache#31659)

* Support withFormatRecordOnFailureFunction() for BigQuery STORAGE_WRITE_API and STORAGE_API_AT_LEAST_ONCE methods

* Update CHANGES.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Enable withFormatRecordOnFailureFunction() equivalent for BigQuery STORAGE_WRITE_API
3 participants