citusdata / citusdata/postgresql-hll

hll_out produces different results for the same value

Open
#93 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
1.2k
Forks
115
PR merge metrics
No merged PRs in 30d

Description

``hll_out()`` doesn't unpack the value before outputting the ``bytea`` representation. That means that the same value could have two different output representations depending on how it is compressed internally.

Compression should only affect the internal representation, not the output. We should unpack it before outputting.

We should also consider a better output function that prints ``regwidth`` and ``log2m`` and omits irrelevant parts of the header.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.