v.20.3New Feature
Added bitCount function to address issue #8702
Added function bitCount. This fixes #8702. #8708 (alexey-milovidov) #8749 (ikopylov)Why it matters
This function solves the need for efficiently counting the number of bits set to one in integer values, which is useful in various bitwise operations, analytics, and data processing scenarios.How to use it
Use thebitCount function in your queries by passing an integer expression to it, for example:SELECT bitCount(your_integer_column) FROM your_table;