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

[GitHub] [arrow-datafusion] RTEnzyme opened a new issue, #5699: | & | Binary AND Operator copies a bit to the result if it exists in both operands. | (A & B) will give 12 which is 0000 1100 |

RTEnzyme opened a new issue, #5699:
URL: https://github.com/apache/arrow-datafusion/issues/5699

                 |  & | Binary AND Operator copies a bit to the result if it exists in both operands.                                             |                            (A & B) will give 12 which is 0000 1100                           |
   |:--:|---------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------:|
   | \| | Binary OR Operator copies a bit if it exists in either operand.                                                           |                           (A \| B) will give 61 which is 0011 1101                           |
   |  ~ | Binary Ones Complement Operator is unary and has the effect of 'flipping' bits.                                           | (~A ) will give -61 which is 1100 0011 in 2's complement form due to a signed binary number. |
   | << | Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.   |                            A << 2 will give 240 which is 1111 0000                           |
   | >> | Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. |                            A >> 2 will give 15 which is 0000 1111                            |
   |  # |                                                        bitwise XOR.                                                       |                             A # B will give 49 which is 00110001                             |
   
   I have investigated the bitwise operations in the PG database.
   You can follow the PG document to implement this.
   @FauxFaux
   
   _Originally posted by @liukun4515 in https://github.com/apache/arrow-datafusion/issues/1619#issuecomment-1018130018_
               


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] RTEnzyme closed issue #5699: | & | Binary AND Operator copies a bit to the result if it exists in both operands. | (A & B) will give 12 which is 0000 1100 |

Posted by "RTEnzyme (via GitHub)" <gi...@apache.org>.
RTEnzyme closed issue #5699: |  & | Binary AND Operator copies a bit to the result if it exists in both operands.                                             |                            (A & B) will give 12 which is 0000 1100                           |
URL: https://github.com/apache/arrow-datafusion/issues/5699


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