Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 967 Bytes

distinctcounthllplus.md

File metadata and controls

39 lines (29 loc) · 967 Bytes
description
This section contains reference documentation for the DISTINCTCOUNTHLLPLUS function.

DISTINCTCOUNTHLLPLUS

Returns an approximate distinct count using HyperLogLogPlusPlus. It also takes an optional second and third arguments to configure the p, sp for the HyperLogLogPlus.
The optional parameter p defines the normal set precision and the parameter sp defines the sparse set precision.
For accurate distinct counting, see DISTINCTCOUNT.

Signature

DISTINCTCOUNTHLLPlus(colName) DISTINCTCOUNTHLLPlus(colName, p) DISTINCTCOUNTHLLPlus(colName, p, sp)

Usage Examples

These examples are based on the Batch Quick Start.

select DISTINCTCOUNTHLLPLUS(teamID) AS value
from baseballStats 
value
158
select DISTINCTCOUNTHLLPLUS(teamID, 12) AS value
from baseballStats 
value
149