You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/03/23 12:44:49 UTC

[GitHub] [arrow-datafusion] alamb commented on issue #5700: Implement the bitwise complement operator

alamb commented on issue #5700:
URL: https://github.com/apache/arrow-datafusion/issues/5700#issuecomment-1481132344

   In order to implement this feature I would suggest extending `Expr::Not` to work with integral types
   
   https://github.com/apache/arrow-datafusion/blob/8594ec73184b348ba23cf23458f1fc5340505d13/datafusion/expr/src/expr.rs#L104C51-L105
   
   There is already an arrow kernel that can be used: https://docs.rs/arrow/35.0.0/arrow/compute/kernels/bitwise/fn.bitwise_not.html
   
   You may also have to figure out how to get the `~col` to work -- sqlparser supports it -- https://docs.rs/sqlparser/0.32.0/sqlparser/ast/enum.UnaryOperator.html#variant.PGBitwiseNot
   
   
   


-- 
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