bit_count
function
Applies to: Databricks SQL
Databricks Runtime
Returns the number of bits set in the argument.
To count bits in a BINARY
expression use bitmap_count function.
Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseUpdated Feb 14, 2025
bit_count
function Applies to: Databricks SQL
Databricks Runtime
Returns the number of bits set in the argument.
To count bits in a BINARY
expression use bitmap_count function.