Skip to content

hll_add_agg() should return an hll_empty() when aggregating over an empty set #2

Closed
@ghost

Description

hll_add_agg currently returns NULL when it aggregates over an empty data set, which can have the undesirable effect of NULLing out the target when the aggregate is used to update another hll column (with hll_union).

The issue is avoidable with some NULL detection (as is shown in this blog post) but the post is right in that the real fix should be in postgresql-hll.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions