Uh oh!
There was an error while loading. Please reload this page.
(BEAM-12628) add ReflectDatum{Reader,Writer} option for AvroCoder - #15292
(BEAM-12628) add ReflectDatum{Reader,Writer} option for AvroCoder#15292clairemcginty wants to merge 6 commits into
Conversation
@RyanSkraba -- since you were commenting on the mail list and you filed (BEAM-12628) |
brucearctor
commented
Aug 6, 2021
@iemejia -- since you are esp. well versed in things AVRO. Any comments? |
RyanSkraba
left a comment
There was a problem hiding this comment.
LGTM -- thanks so much for catching this!
iemejia
left a comment
There was a problem hiding this comment.
LGTM, Thanks @clairemcginty for bringing the issue and the clean solution / PR.
Thanks @RyanSkraba too for the suggestion +review.
iemejia
commented
Aug 6, 2021
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. |
iemejia
commented
Aug 6, 2021
Oups forgot to mention that probably it is worth to add this as an issue in the release notes |
clairemcginty
commented
Aug 6, 2021
angoenka
commented
Aug 9, 2021
Please create a cherry pick pr. |
clairemcginty
commented
Aug 9, 2021
iemejia
commented
Aug 10, 2021
@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/dev@beam.apache.org/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.Utf8s instead ofjava.lang.Strings, 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-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
ValidatesRunnercompliance 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.