alamb commented on issue #2387: URL: https://github.com/apache/arrow-rs/issues/2387#issuecomment-1233293594
I think it is a safe option to follow the C/C++ interface. 👍 I don't really have a strong opinion here other than like @tustvold I would like a consistent rule that we follow. > Which is the right behavior for the cast when occurs overflow? @alamb @tustvold I think the idea is that the user can call `cast` to get "default" behavior or `cast_with_options` to control whether they would like to generate an error or NULL if the cast wasn't successful https://docs.rs/arrow/21.0.0/arrow/compute/kernels/cast/index.html I suggest making Decimal the same with respect to casting behavior (as in follow the default behavior of the other numeric types) -- 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]
