clesaec commented on PR #2282:
URL: https://github.com/apache/avro/pull/2282#issuecomment-1597243684

   In rust, this [big 
decimal](https://docs.diesel.rs/1.4.x/bigdecimal/struct.BigDecimal.html) 
definition is near the one of Java, as it contains [constructor 
as](https://docs.diesel.rs/1.4.x/src/bigdecimal/lib.rs.html#149)
   `pub fn new(digits: BigInt, scale: i64) -> BigDecimal {`
   
   In C#, [big rational 
seems](https://www.extremeoptimization.com/Documentation/Reference/Extreme.Mathematics.BigRational)
 even better, as it's directly a fraction of 2 big integer (so, support easily 
10/3, which is not obvious in Java).
   
   i didn't look in other language, in any case, it should be possible to use 
the proposed stored format to a defined class (even if i first code it for 
Java).
   
   For the moment, i didn't see logical type with "java-type" arguments; may be 
i could add "lang" arg ?
   as `"langs" : ["java", "rust"]`  (adding values when PR integrated) ?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to