All Products
Search
Document Center

Lindorm:DROP PREDOWNSAMPLE

Last Updated:Mar 28, 2026

Deletes one or more pre-downsampling rules from a time series table.

Applicable engines and versions

Applies to all versions of LindormTSDB.

Syntax

DROP PREDOWNSAMPLE time_interval
    AGGREGATORS (function_identifier [, function_identifier ...])
    ON table_identifier

time_interval ::= interval units

Parameters

ParameterDescription
intervalThe aggregation interval. Must be a positive integer.
unitsThe time unit for the interval. Valid values: s (seconds), m (minutes), h (hours), d (days).
AGGREGATORSThe aggregation functions to remove. Valid values: count (returns the total number of data points), first (returns the first value), last (returns the last value), min (returns the minimum value), max (returns the maximum value), sum (returns the sum of the values).
function_identifierThe name of an aggregation function. Specify one or more functions with the same interval in a single statement, or split them across multiple statements.
table_identifierThe name of the time series table.
avg is not supported in pre-downsampling. To compute an average, derive it from the sum and count results. If data is repeatedly written and overwritten, the derived average may be inaccurate.

Examples

Delete the sum and max pre-downsampling rules with a 1-day interval from the sensor table:

DROP PREDOWNSAMPLE `1d` AGGREGATORS (`sum`, `max`) ON sensor;