-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for casting string to decimal #3478
Comments
about the cast, you can refer the apache/arrow-rs#1043 #1443 we don't support the cast/try_cast from decimal to utf8 or utf8 to decimal you can implement this in the arrow-rs kernel about the cast. |
Here is a PR to add the appropriate support in arrow-rs: apache/arrow-rs#3106 👍 |
|
Maybe someone can help clarify...Why does this come out as |
The 38 is the maximum precision of Decimal128 in arrow https://docs.rs/arrow-schema/51.0.0/src/arrow_schema/datatype.rs.html#676 The 10 is the default scale: https://docs.rs/arrow-schema/51.0.0/src/arrow_schema/datatype.rs.html#689 |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to the what)
Describe the solution you'd like
A clear and concise description of what you want to happen.
Would like to be able to cast string to decimal as is supported by float types.
but should work like it does for float:
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: