jayzhan211 commented on issue #8302: URL: https://github.com/apache/arrow-datafusion/issues/8302#issuecomment-1822827323
> My current thinking is casting should never silently lose data. https://github.com/apache/arrow-rs/blob/df69ef57d055453c399fa925ad315d19211d7ab2/arrow-cast/src/cast.rs#L76C2-L80 Comment in `can_cast_types` mention that cast is lossy. https://github.com/apache/arrow-rs/blob/df69ef57d055453c399fa925ad315d19211d7ab2/arrow-cast/src/cast.rs#L212-L216 Casting Int64 to Int32 return true. I'm not sure if the `actual` casting block this lossy conversion, but if not, this can silently lose data? -- 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]
