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 21:55:11 UTC
[GitHub] [beam] damccorm opened a new issue, #21226: Beam Row Avro conversion: fixed and bytes decimals
damccorm opened a new issue, #21226:
URL: https://github.com/apache/beam/issues/21226
An Avro decimal logical type annotates Avro bytes or fixed types.
Current Row to Avro conversion is limited to bytes type and in addition hardcodes precision to MAX_INT and scale to 0.
I have attached a patch that adds support for decimal bytes and fixed types.
I could think of 2 possible ways to solve this:
- Change Row decimal type to a logical type
- Use Beam field options to pass additional metadata required to serialize decimals
I felt that overhauling Beam schema types might not be a good idea. Instead I went with option 2.
Passes ./gradlew check
Imported from Jira [BEAM-12877](https://issues.apache.org/jira/browse/BEAM-12877). Original Jira may contain additional context.
Reported by: kegelink.
--
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] gabrywu commented on issue #21226: Beam Row Avro conversion: fixed and bytes decimals
Posted by "gabrywu (via GitHub)" <gi...@apache.org>.
gabrywu commented on issue #21226:
URL: https://github.com/apache/beam/issues/21226#issuecomment-1650912492
any updates?
--
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