You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 19:13:05 UTC
[GitHub] [beam] damccorm opened a new issue, #20770: Deprecate .withProjection from ParquetIO
damccorm opened a new issue, #20770:
URL: https://github.com/apache/beam/issues/20770
There are multiple issues wrong with the API of withProjection:
1. The current API requires an extra encoderSchema that is not needed when projecting data in Parquet. The simplest way to get this with the Parquet API is by passing the projectionSchema like this:
> {color:#000000}AvroReadSupport{color}.setAvroReadSchema({color:#871094}conf{color}, {color:#871094}projectionSchema{color});
> olor:#000000}AvroReadSupport{color}.setRequestedProjection({color:#871094}conf{color}, {color:#871094}projectionSchema{color});
> We can offer an alternative method `withProjection(Configuration conf, List<String\> fields)` so users don't have to build their own projection Schema, but historically we have let users to rely on the upstream connector API. If we follow this we can better document in ParquetIO how to project fields by relying in the Parquet APIs and avoid maintaining this extra code in the Beam side.
Imported from Jira [BEAM-11908](https://issues.apache.org/jira/browse/BEAM-11908). Original Jira may contain additional context.
Reported by: iemejia.
--
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.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] DevPJ9 commented on issue #20770: Deprecate .withProjection from ParquetIO
Posted by "DevPJ9 (via GitHub)" <gi...@apache.org>.
DevPJ9 commented on issue #20770:
URL: https://github.com/apache/beam/issues/20770#issuecomment-1496416449
Hello @damccorm, I would like to contribute.
--
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.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Deprecate .withProjection from ParquetIO [beam]
Posted by "kennknowles (via GitHub)" <gi...@apache.org>.
kennknowles closed issue #20770: Deprecate .withProjection from ParquetIO
URL: https://github.com/apache/beam/issues/20770
--
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.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Deprecate .withProjection from ParquetIO [beam]
Posted by "nitinware (via GitHub)" <gi...@apache.org>.
nitinware commented on issue #20770:
URL: https://github.com/apache/beam/issues/20770#issuecomment-5572408116
.take-issue
--
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.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org