[
https://issues.apache.org/jira/browse/AVRO-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17732973#comment-17732973
]
Fedor Telnov edited comment on AVRO-3781 at 6/15/23 10:05 AM:
--------------------------------------------------------------
Good day, [~mgrigorov] !
Before I make a PR with my ideas, I'd like to discuss the ways you see it best
for avro.
Would you please answer, if such a things might be good to be resolvable to
decimals:
1) Float/Double;
2) String representation of floating-points numbers;
3) Array of integers as bytes.
Confirm, if project is interested in such features, then I'll implement them.
was (Author: JIRAUSER300169):
Good day, [~mgrigorov] !
Before I make a PR with my ideas, I'd like to discuss the ways you see it best
for avro.
Would you please answer, if such a things might be good to be resolvable to
decimals:
1) Float/Double;
2) String representation of floating-points numbers;
3) Array of integers as bytes.
> [Rust] Enhance decimal resolving
> --------------------------------
>
> Key: AVRO-3781
> URL: https://issues.apache.org/jira/browse/AVRO-3781
> Project: Apache Avro
> Issue Type: Improvement
> Components: rust
> Reporter: Fedor Telnov
> Priority: Major
>
> Firstly, I have a question - maybe I've missed something - how to properly
> resolve json-based avro data with decimal avro schema(either based on bytes
> or fixed types)?
> I think it's impossible to resolve json-based avro data with decimal schema -
> I've tried some variants, like passing bytes as Unicode symbols, or passing
> array of bytes directly, or even simply float numbers - nothing works.
> My proposition is to allow decimal resolving on following json variants:
> 1) Array of u8;
> 2) float value;
> 3) integer value.
> String is kinda dangerous to allow resolving, as it might be malformed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)