[ https://issues.apache.org/jira/browse/BEAM-7802?focusedWorklogId=289658&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-289658 ]
ASF GitHub Bot logged work on BEAM-7802: ---------------------------------------- Author: ASF GitHub Bot Created on: 06/Aug/19 13:41 Start Date: 06/Aug/19 13:41 Worklog Time Spent: 10m Work Description: iemejia commented on issue #9130: [BEAM-7802] Expose a method to make an Avro-based PCollection into an Schema-based one URL: https://github.com/apache/beam/pull/9130#issuecomment-518674333 Did suggested updates PTAL @kanterov I added `schemaCoder` methods to match those of `AvroCoder.of` and one additional one to do it from an existing `AvroCoder` that one is relatively simple from the others and I can remove it if you prefer, but I ended up rewriting these two lines multiple times. ---------------------------------------------------------------- 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: 289658) Time Spent: 2h (was: 1h 50m) > Expose a method to make an Avro-based PCollection into an Schema-based one > -------------------------------------------------------------------------- > > Key: BEAM-7802 > URL: https://issues.apache.org/jira/browse/BEAM-7802 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core > Reporter: Ismaël Mejía > Assignee: Ismaël Mejía > Priority: Minor > Time Spent: 2h > Remaining Estimate: 0h > > Avro can infer the Schema for an Avro based PCollection by using the > `withBeamSchemas` method, however if the user created a PCollection with Avro > objects or IndexedRecord/GenericRecord, he needs to manually set the schema > (or coder). The idea is to expose a method in schema.AvroUtils to ease this. -- This message was sent by Atlassian JIRA (v7.6.14#76016)