[ 
https://issues.apache.org/jira/browse/AVRO-3331?focusedWorklogId=719389&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-719389
 ]

ASF GitHub Bot logged work on AVRO-3331:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Feb/22 14:07
            Start Date: 02/Feb/22 14:07
    Worklog Time Spent: 10m 
      Work Description: martin-g commented on pull request #1501:
URL: https://github.com/apache/avro/pull/1501#issuecomment-1027975345


   Closing without merge for now!
   Users of apache_avro::Decimal should use the byte array representation of 
the bit_int and third party libraries to read it as a decimal.


-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 719389)
    Time Spent: 1h  (was: 50m)

> Rust: Cannot extract Decimal value
> ----------------------------------
>
>                 Key: AVRO-3331
>                 URL: https://issues.apache.org/jira/browse/AVRO-3331
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: rust
>            Reporter: Thomas Schilling
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The [Decimal|https://docs.rs/avro-rs/latest/avro_rs/struct.Decimal.html] type 
> (as of 0.13) doesn't have any methods or trait implementations that allow 
> users to extract the value. The only workaround I could think of would be to 
> parse the output of the `Debug` implementation. But that's clearly very 
> inefficient and fragile.
> The (unreleased?) version 0.14 also seems to have the same issue 
> ([source|https://github.com/apache/avro/blob/master/lang/rust/src/decimal.rs]).
> It might just be enough to make the {{to_vec }}method public and specify how 
> to interpret the result vector.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to