Skip to content

Merge TDigest with different compression factors #221

@jameswang2015

Description

@jameswang2015

Sometimes we get a TDigest field with different compression factors(For example, we change compression factor but some users still use old versions of product that still have old compression factors). The current Merge function can't handle that. Can we extend the Merge function to support that?

On the other hand, we currently follow these steps to merge it. Would this make sense?

  1. Destruct the tdigest into a list of centroids and weights.
  2. Unnest the list of centroids and weights.
  3. Merge the centroids and weights into a single tdigest with the specified compression by using TDIGEST_AGG(m, w, compression)

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions