[ 
https://issues.apache.org/jira/browse/BEAM-4454?focusedWorklogId=175237&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-175237
 ]

ASF GitHub Bot logged work on BEAM-4454:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Dec/18 08:22
            Start Date: 14/Dec/18 08:22
    Worklog Time Spent: 10m 
      Work Description: reuvenlax commented on a change in pull request #7267: 
[BEAM-4454] Support Avro POJO objects
URL: https://github.com/apache/beam/pull/7267#discussion_r241673327
 
 

 ##########
 File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/AvroUserTypeCreatorFactory.java
 ##########
 @@ -17,13 +17,12 @@
  */
 package org.apache.beam.sdk.schemas;
 
-import org.apache.avro.specific.SpecificRecord;
 import org.apache.beam.sdk.schemas.utils.AvroUtils;
 
-/** A {@link UserTypeCreatorFactory} for AVRO-generated specific records. */
-public class AvroSpecificRecordUserTypeCreatorFactory implements 
UserTypeCreatorFactory {
+/** A {@link UserTypeCreatorFactory} for AVRO-generated specific records and 
POJOs. */
+public class AvroUserTypeCreatorFactory implements UserTypeCreatorFactory {
   @Override
   public SchemaUserTypeCreator create(Class<?> clazz, Schema schema) {
-    return AvroUtils.getCreator((Class<? extends SpecificRecord>) clazz, 
schema);
+    return AvroUtils.getCreator(clazz, schema);
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 175237)
    Time Spent: 10h 40m  (was: 10.5h)

> Provide automatic schema registration for AVROs
> -----------------------------------------------
>
>                 Key: BEAM-4454
>                 URL: https://issues.apache.org/jira/browse/BEAM-4454
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-java-core
>            Reporter: Reuven Lax
>            Assignee: Reuven Lax
>            Priority: Major
>          Time Spent: 10h 40m
>  Remaining Estimate: 0h
>
> Need to make sure this is a compatible change



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to