You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Ismaël Mejía (Jira)" <ji...@apache.org> on 2021/03/02 15:58:00 UTC
[jira] [Updated] (BEAM-11861) ParquetIO throws Coder not found when
using parseGenericRecord or parseFilesGenericRecord
[ https://issues.apache.org/jira/browse/BEAM-11861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismaël Mejía updated BEAM-11861:
--------------------------------
Fix Version/s: 2.29.0
> 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)