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

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

                Author: ASF GitHub Bot
            Created on: 23/Jul/19 20:21
            Start Date: 23/Jul/19 20:21
    Worklog Time Spent: 10m 
      Work Description: reuvenlax 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-514368800
 
 
   Very cool!
   
   On Tue, Jul 23, 2019 at 12:34 PM Ismaël Mejía <notificati...@github.com>
   wrote:
   
   > This is just my first PR while playing a bit with Schemas and SQL. I found
   > that it was not straight forward to transform an Avro-based PCollection
   > into a Beam schema one so did this. It also does some minor clean ups in
   > AvroUtils and the SQL example.
   >
   > R: @reuvenlax <https://github.com/reuvenlax>
   > ------------------------------
   > You can view, comment on, or merge this pull request online at:
   >
   >   https://github.com/apache/beam/pull/9130
   > Commit Summary
   >
   >    - [BEAM-7802] Make SQL example slightly simpler
   >    - [BEAM-7802] Inline AvroUtils methods to have only one public
   >    AvroUtils class in core SDK
   >    - [BEAM-7802] Expose a method to make an Avro-based PCollection into
   >    an Schema-based one
   >    - [BEAM-7802] Fix minor issues (access modifiers + static) in AvroUtils
   >
   > File Changes
   >
   >    - *M* sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroIO.java
   >    <https://github.com/apache/beam/pull/9130/files#diff-0> (55)
   >    - *D*
   >    sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroUtils.java
   >    <https://github.com/apache/beam/pull/9130/files#diff-1> (40)
   >    - *M*
   >    
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/AvroUtils.java
   >    <https://github.com/apache/beam/pull/9130/files#diff-2> (28)
   >    - *M*
   >    
sdks/java/core/src/test/java/org/apache/beam/sdk/schemas/utils/AvroUtilsTest.java
   >    <https://github.com/apache/beam/pull/9130/files#diff-3> (62)
   >    - *M*
   >    
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/example/BeamSqlExample.java
   >    <https://github.com/apache/beam/pull/9130/files#diff-4> (15)
   >    - *M*
   >    
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/example/BeamSqlPojoExample.java
   >    <https://github.com/apache/beam/pull/9130/files#diff-5> (17)
   >
   > Patch Links:
   >
   >    - https://github.com/apache/beam/pull/9130.patch
   >    - https://github.com/apache/beam/pull/9130.diff
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > 
<https://github.com/apache/beam/pull/9130?email_source=notifications&email_token=AFAYJVMG43LNYQ3KSZNZ6RLQA5MMXA5CNFSM4IGIIBM2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HBAPOHA>,
   > or mute the thread
   > 
<https://github.com/notifications/unsubscribe-auth/AFAYJVJ67DOAFUJSA3GSK33QA5MMXANCNFSM4IGIIBMQ>
   > .
   >
   
 
----------------------------------------------------------------
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: 281294)
    Time Spent: 40m  (was: 0.5h)

> 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: 40m
>  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)

Reply via email to