phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ethan Wang (JIRA)" <>
Subject [jira] [Issue Comment Deleted] (PHOENIX-4160) research for a proper hash size set for APPROX_COUNT_DISTINCT
Date Wed, 06 Sep 2017 05:59:00 GMT


Ethan Wang updated PHOENIX-4160:
    Comment: was deleted

(was: [~jamestaylor] [~lhofhansl])

> 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