[ https://issues.apache.org/jira/browse/BEAM-6479?focusedWorklogId=259023&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-259023 ]
ASF GitHub Bot logged work on BEAM-6479: ---------------------------------------- Author: ASF GitHub Bot Created on: 12/Jun/19 19:57 Start Date: 12/Jun/19 19:57 Worklog Time Spent: 10m Work Description: iemejia commented on issue #8418: [BEAM-6479] Deprecate AvroIO.RecordFormatter URL: https://github.com/apache/beam/pull/8418#issuecomment-501432203 What is proposed here is that Beam users should not use a `RecordFormatter` to convert from `ElementT` to `GenericRecord` when writing, but better do this explicitly in an extra `ParDo.of(new DoFn<ElementT, GenericRecord>)` before. There is in practice little difference (apart of the fact that using ParDo is more composable and 'Beamish'). Full materialization should not happen because DoFns are normally fusioned by the runner, of course there could be a small minor extra cost because of the extra DoFn instantiation but probably negligable. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 259023) Time Spent: 50m (was: 40m) > Deprecate AvroIO.RecordFormatter > -------------------------------- > > Key: BEAM-6479 > URL: https://issues.apache.org/jira/browse/BEAM-6479 > Project: Beam > Issue Type: Task > Components: io-java-avro > Affects Versions: 2.9.0 > Reporter: Romain Manni-Bucau > Assignee: Ismaël Mejía > Priority: Major > Fix For: 2.13.0 > > Time Spent: 50m > Remaining Estimate: 0h > > AvroIO.RecordFormatter is an user friendly way to transform user elements > into Avro GenericRecords before writing to a Sink. This can be achieved > easily by doing a ParDo with the same goal and using Sink that knows how to > write a PCollection of IndexedRecords. Like the one proposed in BEAM-6480 -- This message was sent by Atlassian JIRA (v7.6.3#76005)