-
Notifications
You must be signed in to change notification settings - Fork 513
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
Conversation
}); | ||
((AvroIO.Sink<ValueT>) AvroIO.sink(getSchema())) | ||
.withDatumWriterFactory(datumFactory) | ||
.withCodec(codec.getCodec()); | ||
|
||
if (metadata != null) { | ||
return sink.withMetadata(metadata); |
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.
I think there was a bug here: codec was not set if metadata was not null
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.
ack! good thing there wasn't much adoption of the the metadata feature here... 😬
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.
BTW, metadata is not exposed on the IO level. Is this expected ?
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.
it's not part of AvroSortedBucketIO? It should be 😬
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.
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); |
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.
ack! good thing there wasn't much adoption of the the metadata feature here... 😬
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
b6313aa
to
e060b00
Compare
No description provided.