All Products
Search
Document Center

Lindorm:SHOW PREDOWNSAMPLES

Last Updated:Mar 28, 2026

Queries the pre-downsampling rules configured for one or all tables in LindormTSDB.

Applicable engines and versions

LindormTSDB (all versions)

Syntax

SHOW PREDOWNSAMPLES [ ON table_identifier ]

Parameters

ParameterRequiredDescription
table_identifierNoThe name of the table whose pre-downsampling rules to query. If omitted, rules for all tables are returned.

Examples

Query pre-downsampling rules for all tables

SHOW PREDOWNSAMPLES;

Output:

+--------+----------+------------+-----+----------------------+
| table  | interval | aggregator | ttl | update_time          |
+--------+----------+------------+-----+----------------------+
| sensor | 1h       | sum, max   | 90d | 2021-10-10T08:00:00Z |
| sensor | 5m       | sum, max   | 30d | 2021-10-10T08:00:00Z |
| test   | 1m       | sum, max   | 30d | 2021-10-10T08:00:00Z |
| test   | 2h       | sum, max   | 30d | 2021-10-10T08:00:00Z |
+--------+----------+------------+-----+----------------------+

Query pre-downsampling rules for a specific table

SHOW PREDOWNSAMPLES ON sensor;

Output:

+--------+----------+------------+-----+----------------------+
| table  | interval | aggregator | ttl | update_time          |
+--------+----------+------------+-----+----------------------+
| sensor | 1h       | sum, max   | 90d | 2021-10-10T08:00:00Z |
| sensor | 5m       | sum, max   | 30d | 2021-10-10T08:00:00Z |
+--------+----------+------------+-----+----------------------+

Each row in the result represents one pre-downsampling rule. The result columns are:

ColumnDescription
tableThe name of the table.
intervalThe downsampling interval (for example, 1h, 5m).
aggregatorThe aggregation functions applied during downsampling (for example, sum, max).
ttlThe Time to Live (TTL) of the downsampled data (for example, 90d).
update_timeThe time when the rule was last updated, in UTC.