-
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
(BEAM-12628) add ReflectDatum{Reader,Writer} option for AvroCoder #15292
(BEAM-12628) add ReflectDatum{Reader,Writer} option for AvroCoder #15292
Conversation
@RyanSkraba -- since you were commenting on the mail list and you filed (BEAM-12628) |
@iemejia -- since you are esp. well versed in things AVRO. Any comments? |
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.
LGTM -- thanks so much for catching this!
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.
LGTM, Thanks @clairemcginty for bringing the issue and the clean solution / PR.
Thanks @RyanSkraba too for the suggestion +review.
I merged it manually to squash the commits. Since we already cut the 2.32.0 release branch if you want this to go into the 2.32.0 version we will require to cherry pick it. Can you please do this @clairemcginty ? @angoenka I put this in the list for 2.32.0 I think the regression is important enough to deserve to be cherry picked. |
Oups forgot to mention that probably it is worth to add this as an issue in the release notes |
Please create a cherry pick pr. |
@angoenka this is clearly a regression (a feature that worked and stopped working) because it breaks the default behavior of |
Per discussion in https://www.mail-archive.com/[email protected]/msg24830.html ; a change in Beam 2.30.0 changed the default Avro decoding behavior to decode Avro string fields as
org.apache.avro.util.Utf8
s instead ofjava.lang.String
s, by switching fromReflectDatum{Reader,Writer}
toSpecificDatum{Reader,Writer}
(see gist for examples). This PR would add back the option to use {Reflect*} suite with an optional Boolean flag. I'm not sure how "stylistically" Beam this change is so let me know what you think/whether this change is appropriate to add.Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
ValidatesRunner
compliance status (on master branch)Examples testing status on various runners
Post-Commit SDK/Transform Integration Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.