Apache Presto - bit_count(x,bits)


Query

presto:default> select bit_count(1,2) as bitcounts; 

Result

 bitcounts 
----------- 
    1 

Here, the total number of bit is 1.

apache_presto_sql_functions.htm
Advertisements