beam icon indicating copy to clipboard operation
beam copied to clipboard

Eliminate null errors from JdbcIO

Open kennknowles opened this issue 3 years ago • 6 comments

This adds enough annotation and checks to re-enable nullness checking in JdbcIO. It does not do any significant refactor that might make it less error-prone.


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

  • [x] Choose reviewer(s) and mention them in a comment (R: @username).
  • [x] 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.
  • [x] Update CHANGES.md with noteworthy changes.
  • [x] 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.

kennknowles avatar Aug 25 '22 03:08 kennknowles

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @lukecwik for label java. R: @chamikaramj for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

github-actions[bot] avatar Aug 25 '22 03:08 github-actions[bot]

Reminder, please take a look at this pr: @lukecwik @chamikaramj

github-actions[bot] avatar Sep 01 '22 12:09 github-actions[bot]

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @kileys for label java. R: @pabloem for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

github-actions[bot] avatar Sep 06 '22 12:09 github-actions[bot]

Reminder, please take a look at this pr: @kileys @pabloem

github-actions[bot] avatar Sep 15 '22 12:09 github-actions[bot]

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @robertwb for label java. R: @johnjcasey for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

github-actions[bot] avatar Sep 19 '22 12:09 github-actions[bot]

Just noting that I somehow broke expand() and haven't narrowed down how, so this is not ready for review.

kennknowles avatar Sep 21 '22 01:09 kennknowles

Reminder, please take a look at this pr: @robertwb @johnjcasey

github-actions[bot] avatar Sep 28 '22 12:09 github-actions[bot]

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @kileys for label java. R: @pabloem for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

github-actions[bot] avatar Oct 07 '22 12:10 github-actions[bot]

R: @chamikaramj

kennknowles avatar Oct 07 '22 18:10 kennknowles

Setting reviewer so the bot is happy. I need to find some time to fix up the tests

kennknowles avatar Oct 07 '22 18:10 kennknowles

Reminder, please take a look at this pr: @kileys @pabloem

github-actions[bot] avatar Oct 15 '22 12:10 github-actions[bot]

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @apilloud for label java. R: @johnjcasey for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

github-actions[bot] avatar Oct 19 '22 12:10 github-actions[bot]

r: @chamikaramj

apilloud avatar Oct 19 '22 18:10 apilloud

R: @chamikaramj

apilloud avatar Oct 19 '22 18:10 apilloud

stop reviewer notifications

apilloud avatar Oct 19 '22 18:10 apilloud

Review bot seems to be having problems...

apilloud avatar Oct 19 '22 18:10 apilloud

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

github-actions[bot] avatar Oct 19 '22 20:10 github-actions[bot]

Run Java_JDBC_IO_Direct PreCommit

kennknowles avatar Dec 08 '22 19:12 kennknowles

The spotbugs failure does not reproduce for me locally so I will pull shenanigans to get the report from the jenkins box. We should probably find a way to at least archive the artifacts with the job.

kennknowles avatar Dec 08 '22 21:12 kennknowles

Run Java_JDBC_IO_Direct PreCommit

kennknowles avatar Dec 08 '22 21:12 kennknowles

I don't know why spotbugs succeeded locally. There is a multi-statement try-with-resources that I had to annotate to ignore the warning. By grabbing the file off the Jenkins box it was straightforward.

kennknowles avatar Dec 08 '22 21:12 kennknowles