Apache Presto - bitwise_and(x,y)


Query

presto:default> select bitwise_and(2,3) as bit_and; 

Result

 bit_and 
--------- 
    2 

The above and performed between two bits 2(010) and 3(011). Hence, the result is 2.

apache_presto_sql_functions.htm
Advertisements