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

Integrate datum-factory in smb-avro #5181

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Integrate datum-factory in smb-avro #5181

merged 2 commits into from
Jan 18, 2024

Conversation

RustedBones
Copy link
Contributor

No description provided.

});
((AvroIO.Sink<ValueT>) AvroIO.sink(getSchema()))
.withDatumWriterFactory(datumFactory)
.withCodec(codec.getCodec());

if (metadata != null) {
return sink.withMetadata(metadata);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think there was a bug here: codec was not set if metadata was not null

Copy link
Contributor

Choose a reason for hiding this comment

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

ack! good thing there wasn't much adoption of the the metadata feature here... 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, metadata is not exposed on the IO level. Is this expected ?

Copy link
Contributor

Choose a reason for hiding this comment

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

it's not part of AvroSortedBucketIO? It should be 😬

Copy link
Contributor

Choose a reason for hiding this comment

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

I can add it as a follow-up PR today

});
((AvroIO.Sink<ValueT>) AvroIO.sink(getSchema()))
.withDatumWriterFactory(datumFactory)
.withCodec(codec.getCodec());

if (metadata != null) {
return sink.withMetadata(metadata);
Copy link
Contributor

Choose a reason for hiding this comment

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

ack! good thing there wasn't much adoption of the the metadata feature here... 😬

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (24ba7eb) 63.05% compared to head (e060b00) 63.05%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5181   +/-   ##
=======================================
  Coverage   63.05%   63.05%           
=======================================
  Files         300      300           
  Lines       10945    10945           
  Branches      760      760           
=======================================
  Hits         6901     6901           
  Misses       4044     4044           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RustedBones RustedBones marked this pull request as ready for review January 18, 2024 17:13
@RustedBones RustedBones merged commit c2886ee into main Jan 18, 2024
11 checks passed
@RustedBones RustedBones deleted the datum-factory-smb branch January 18, 2024 17:13
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.

None yet

2 participants