TDIGEST.MERGE to-key from-key

Available in: Redis Stack

Time complexity: O(N), where N is the number of centroids

Merges all of the values from 'from' to 'this' sketch.

Parameters:

  • to-key: Sketch to copy values to.
  • from-key: Sketch to copy values from.

Return

OK on success, error otherwise

Examples

redis> TDIGEST.MERGE to-sketch from-sketch
OK