[ 
https://issues.apache.org/jira/browse/BEAM-11861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismaël Mejía updated BEAM-11861:
--------------------------------
    Resolution: Fixed
        Status: Resolved  (was: In Progress)

> ParquetIO throws Coder not found when using parseGenericRecord or 
> parseFilesGenericRecord
> -----------------------------------------------------------------------------------------
>
>                 Key: BEAM-11861
>                 URL: https://issues.apache.org/jira/browse/BEAM-11861
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-parquet
>    Affects Versions: 2.28.0
>            Reporter: Anant Damle
>            Assignee: Anant Damle
>            Priority: P2
>             Fix For: 2.29.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> ParquetIO is missing output coder  when  using a user-specified parsing 
> function with `parseGenericRecord` or `parseFilesGenericRecord` feature for 
> reading Parquet files with unknown schema.
> *Workaround:* 
>  Use `setCoder` directly on the output `PCollection`
>  for example:
> {{SerializableFunction<GenericRecord, Foo> parseFn = ...;}}
>  {{Coder<Foo> fooCoder = ...;}}
> {{PCollection<Foo> records = 
> }}{{p}}{{.apply(ParquetIO.parseGenericRecords(parseFn).from(...))}}
>  {{*.setCoder(fooCoder)*;}}



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

Reply via email to