You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "neilconway (via GitHub)" <gi...@apache.org> on 2026/05/23 13:26:51 UTC

[I] string -> decimal cast should not treat empty string as 0 [arrow-rs]

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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] string -> decimal cast should not treat empty string as 0 [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #10009:
URL: https://github.com/apache/arrow-rs/issues/10009#issuecomment-4616730890

   `label_issue.py` automatically added labels {'arrow'} from #10010


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] string -> decimal cast should not treat empty string as 0 [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #10009: string -> decimal cast should not treat empty string as 0
URL: https://github.com/apache/arrow-rs/issues/10009


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org