Skip to content
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

Pass avro reader schema for SMB operation #5032

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

RustedBones
Copy link
Contributor

@RustedBones RustedBones commented Oct 17, 2023

Fix regression introduced in #4975. Schema is not given to the reflect datum reader.

@@ -210,7 +203,7 @@ public void prepareRead(ReadableByteChannel channel) throws IOException {
// same as SpecificRecordDatumFactory in scio-avro
ReflectData data = new ReflectData(recordClass.getClassLoader());
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroUtils.addLogicalTypeConversions(data);
datumReader = new ReflectDatumReader<>(data);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

schema was not passed to the reader

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #5032 (ae69203) into main (8553596) will not change coverage.
The diff coverage is n/a.

❗ Current head ae69203 differs from pull request most recent head 883f793. Consider uploading reports for the commit 883f793 to get more accurate results

@@           Coverage Diff           @@
##             main    #5032   +/-   ##
=======================================
  Coverage   63.12%   63.12%           
=======================================
  Files         286      286           
  Lines       10736    10736           
  Branches      764      764           
=======================================
  Hits         6777     6777           
  Misses       3959     3959           

@RustedBones RustedBones merged commit fb3c27f into main Oct 17, 2023
11 checks passed
@RustedBones RustedBones deleted the smb-avro-file-op-reader-schema branch October 17, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants