Back to Redis

TDIGEST.MIN

content/commands/tdigest.min.md

latest1.7 KB
Original Source

Returns the minimum observation value from a t-digest sketch.

Required arguments

<details open><summary><code>key</code></summary>

is the key name for an existing t-digest sketch.

</details>

Examples

{{< highlight bash >}} redis> TDIGEST.CREATE t OK redis> TDIGEST.MIN t "nan" redis> TDIGEST.ADD t 3 4 1 2 5 OK redis> TDIGEST.MIN t "1" {{< / highlight >}}

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |

Return information

{{< multitabs id="tdigest-min-return-info" tab1="RESP2" tab2="RESP3" >}}

One of the following:

  • [Bulk string reply]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}}) as floating-point representing the minimum observation value from the given sketch. The result is always accurate. nan is returned if the sketch is empty.
  • [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) in these cases: incorrect number of arguments or incorrect key type.

-tab-sep-

One of the following:

  • [Double reply]({{< relref "/develop/reference/protocol-spec#doubles" >}}) representing the minimum observation value from the given sketch. The result is always accurate. nan is returned if the sketch is empty.
  • [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) in these cases: incorrect number of arguments or incorrect key type.

{{< /multitabs >}}