-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add partitioned reads to JDBC SchemaIO #25240
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
Conversation
…elieve numeric and datetime are currently supported). Start adding a JdbcPartitionedReadSchemaTransformProvider as a more generic SchemaTransform. This fits better with the SchemaTransform approach as the partitioned read is actually a different transform entirely from the non-partitioned version.
…scussion. Added a test to the Python side that should exercise this pathway (though this is difficult to fully verify). Verified that it is actually run during tests and that it will fail if something is very wrong though.
Codecov Report
@@ Coverage Diff @@
## master #25240 +/- ##
==========================================
- Coverage 72.97% 72.97% -0.01%
==========================================
Files 743 743
Lines 99037 99037
==========================================
- Hits 72273 72271 -2
- Misses 25398 25400 +2
Partials 1366 1366
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| if (outputParallelization != null) { | ||
| readRows = readRows.withOutputParallelization(outputParallelization); | ||
| // If we define a partition column we need to go a different route | ||
| @Nullable String partitionColumn = config.getString("partitionColumn"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just note that for newly introduced parameters it may need to check the existence of the field first, similar to #25062 otherwise may causing error in go SDK's xlang jdbc wrapper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @byronellis if you do not have time, I am willing to fix the comments in order to make it in before Beam 2.46.0 cut.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opened #25577 fixed a couple of things and test passed there
|
Assigning reviewers. If you would like to opt out of this review, comment R: @pabloem for label python. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
| ('output_parallelization', typing.Optional[bool]), | ||
| ('autosharding', typing.Optional[bool]), | ||
| ('partitionColumn', typing.Optional[str]), | ||
| ('tableName', typing.Optional[str]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the tableName configuration field meant to be added?
|
Reminder, please take a look at this pr: @pabloem @apilloud @johnjcasey |
|
R: @ahmedabu98 |
|
Waiting on author |
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions. |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions. |
|
This pull request has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time. |
Addresses #25011 by adding partitioned reads to the existing SchemaIO.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
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, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.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)
See CI.md for more information about GitHub Actions CI.