-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Default SchemaTransform configs to snake_case #31374
Conversation
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
R: @robertwb CC: @lostluck (if this affects Go at all) |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
Fixes #31353 |
Probably does affect Go, but IIRC it just means non idiomatic go field names in generated structs. The existing schema handling code should handle making sure the field is Exported (upper case first character) with a manual field name override of the given snake case name. |
Thanks for the insight @lostluck! From a cursory search I see xlang/bigtableio/bigtableio.go is currently the only SchemaTransform use-case in the Go SDK, is that right? |
R: @lostluck
let me know if the last commit does what you meant here |
I have no idea. I do not keep track of cross language implementations and details about specific IOs. Your search would be as good as mine. |
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.
Left some comments
Thanks @Polber for catching those, can you PTAL again? |
@ahmedabu98 LGTM, but there is an open PR #31455 that would require a couple changes as well if it gets in before this PR is merged |
@chamikaramj would this impact using the transform service cross-version? |
So transform service just wrap expansion services. So change of behavior should be similar to the change of behavior of the Java expansion service. Regarding, cross-version usage, I think what could break is use-cases that assume a schema from a old Beam version while trying to use the new Beam version for expansion. For example, hand-coded wrappers in customer's side. We are updating the affected Beam provided wrappers so I think the chances of someone running into issues due to this should be rare. |
Bringing back the changes reverted in #31109
More details in #31061 and #31353