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

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

                Author: ASF GitHub Bot
            Created on: 14/Apr/21 18:02
            Start Date: 14/Apr/21 18:02
    Worklog Time Spent: 10m 
      Work Description: KevinGG commented on pull request #14533:
URL: https://github.com/apache/beam/pull/14533#issuecomment-819722559


   > Can you please add a better PR and commit title. Also it is probably 
better to make this a method to parametrize the Sink transform as it was done 
for the Read in #10360 via `withAvroDataModel` .
   
   Could anyone more familiar with the package take over the issue? I was 
trying to add a quick fix for a user. In that case, I think someone with better 
knowledge of parquet and avro could maybe help with this. Thanks!


-- 
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:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 582732)
    Time Spent: 0.5h  (was: 20m)

> ParquetIO sink should allow to pass an Avro data model
> ------------------------------------------------------
>
>                 Key: BEAM-12165
>                 URL: https://issues.apache.org/jira/browse/BEAM-12165
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-parquet
>            Reporter: Ning Kang
>            Assignee: Ning Kang
>            Priority: P2
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> AvroParquetWriter instantiated in ParquetIO [1] does not specify the data 
> model.
> The default is SpecificData model [2], while the AvroParquetReader is reading 
> with a GenericData model [3].
> ParquetIO should pass in the correct data model.
> [1] 
> https://github.com/apache/beam/blob/v2.28.0/sdks/java/io/parquet/src/main/java/org/apache/beam/sdk/io/parquet/ParquetIO.java#L1052
> [2] 
> https://github.com/apache/parquet-mr/blob/master/parquet-avro/src/main/java/org/apache/parquet/avro/AvroParquetWriter.java#L163
> [3] 
> https://github.com/apache/beam/blob/v2.28.0/sdks/java/io/parquet/src/main/java/org/apache/beam/sdk/io/parquet/ParquetIO.java#L704



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to