You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/09/16 01:44:06 UTC
[GitHub] [arrow-rs] liukun4515 commented on issue #2702: Support bitwise op in arrow-rs
liukun4515 commented on issue #2702:
URL: https://github.com/apache/arrow-rs/issues/2702#issuecomment-1248819412
@alamb @tustvold
When I implement the left/right shift operation for the bitwise, I meet a issue.
In the rust, the operation` << or shl` will be overflow which don't like the ` bitand, bitor`.
The `warpping_shl` just support `wrapping_shl(self, u32) -> Self`, the `wrapping_shl` for generic type is feature in the rust https://github.com/rust-lang/rust/issues/90080
Do you have any thoughts about that?
Can we add a new trait like `ArrowNativeTypeOp` to support the `shl_wrapping(self, u32) -> Self`?
--
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