Apache Presto - bit_count(x,bits)

查询

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

此处,总位数为 1。

apache_presto_sql_functions.html