Apache Presto - bitwise_xor(x,y)


Query

presto:default> select bitwise_xor(2,3) as bit_xor; 

Result

 bit_xor 
--------- 
   1 

Here, XOR operation for bits 2 and 3 is 1.

apache_presto_sql_functions.htm
Advertisements