phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <>
Subject [jira] [Commented] (PHOENIX-4160) research for a proper hash size set for APPROX_COUNT_DISTINCT
Date Wed, 06 Sep 2017 07:01:17 GMT


James Taylor commented on PHOENIX-4160:

[~lhofhansl] - likely a duplicate of PHOENIX-4164? [~aertoria] has some great pointers - what's
your opinion on the best way to go?

> research for a proper hash size set for APPROX_COUNT_DISTINCT
> -------------------------------------------------------------
>                 Key: PHOENIX-4160
>                 URL:
>             Project: Phoenix
>          Issue Type: Improvement
>         Environment: 
>            Reporter: Ethan Wang
> Now after -PHOENIX-418- finishes, we want to study to find a proper default size for
hll hash. Currently the hash size is hard coded as 25/16 bits by default (a design we follow
Apache Druid. discussion see CALCITE-1588).
> Note:
> 1, the std error of hyperloglog is bound by 1/sqrt(size of hash). i.e.,  {code:java}sqrt(3\*ln(2)-1)/sqrt(2^precision){code}
Detail see the page 129 of this [paper|].
> To try on a bigger size, the performance of hll under different bucket/hash size has
been studied here:
> 2, When the estimate cardinalities is large enough, as Timok and Flajolet et al found
out, this performance of hll will become problematic because the hash collisions (saturation).
In fact, Timok proposed that any number larger than {code}2^{32}/30{code} should consider
"to large" for a 32 bit hash. See study [Google’s Take On Engineering HLL|]
and suggested by the Figure 8 of this [paper|]

This message was sent by Atlassian JIRA

View raw message