neilconway opened a new issue, #10009: URL: https://github.com/apache/arrow-rs/issues/10009
**Describe the bug** When parsing decimal values, `parse_decimal` (correctly) treats empty strings as invalid input. When casting string values to decimal, `parse_string_to_decimal_native` treated an empty string as valid input, resulting in a decimal with a value of 0. **To Reproduce** **Expected behavior** `parse_string_to_decimal_native` should reject empty strings as malformed input, both for consistency with `parse_decimal` and because an empty string is not a valid number. This would also be consistent with the parsing/cast behavior for string -> float. **Additional context** -- 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]
