Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 850 Bytes

distinctcountbitmapmv.md

File metadata and controls

36 lines (26 loc) · 850 Bytes
description
This section contains reference documentation for the DISTINCTCOUNTBITMAPMV function.

DISTINCTCOUNTBITMAPMV

Returns the count of distinct row values in a group. This function is accurate for an INT or dictionary encoded column, but approximate for other cases where hash codes are used in distinct counting and there may be hash collision.

Signature

DISTINCTCOUNTBITMAPMV(colName)

Usage Examples

These examples are based on the Hybrid Quick Start.

select DISTINCTCOUNTBITMAPMV(DivLongestGTimes) AS value
from airlineStats 
where arraylength(DivLongestGTimes) > 1
value
34
select DISTINCTCOUNTBITMAPMV(DivTailNums) AS value
from airlineStats 
where arraylength(DivTailNums) > 1
value
2