[
https://issues.apache.org/jira/browse/BEAM-7802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ismaël Mejía updated BEAM-7802:
-------------------------------
Description: 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 to easily get a Schema Coder
from Avro objects or Schema and the user finally can set the Schema-based coder
if it needs the PCollection to behavie like a Schema-based one. (was: 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.)
> Expose a method to make an Schema coder from an Avro coder
> ----------------------------------------------------------
>
> 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: 6.5h
> 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 to easily get a Schema Coder from
> Avro objects or Schema and the user finally can set the Schema-based coder if
> it needs the PCollection to behavie like a Schema-based one.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)