neilconway opened a new issue, #10791:
URL: https://github.com/apache/arrow-rs/issues/10791

   ### Describe the bug
   
   Arrow allows [negative 
scales](https://arrow.apache.org/docs/r/reference/data-type.html#arg-scale) for 
decimal values.
   
   ### To Reproduce
   
   ```rust
   use arrow_array::types::Decimal128Type;
   use arrow_cast::parse::parse_decimal;
   
   // returns 12345 (i.e. 1234500 at scale -2); expected 12 (1200)
   parse_decimal::<Decimal128Type>("1234.5", 10, -2);
   // returns 150 (15000); expected 2 (200)
   parse_decimal::<Decimal128Type>("150", 10, -2);
   ```
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


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