You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Ning Kang (Jira)" <ji...@apache.org> on 2021/04/14 18:06:00 UTC

[jira] [Commented] (BEAM-12165) ParquetIO sink should allow to pass an Avro data model

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

Ning Kang commented on BEAM-12165:
----------------------------------

I closed Pull Request #14533 since I don't have much knowledge about the package, nor parquet or avro.
I'll leave the issue to better hands to send a proper fix.

> 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
>            Priority: P2
>          Time Spent: 40m
>  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)