GetCompression function
The GetCompression function returns the compression string if the time series data is compressed.
Syntax
GetCompression(ts TimeSeries)
returns string;
- ts
- The name of the time series.
Description
Use the GetCompression function to determine the type of compression that is used in a time series that contains compressed numeric data.
Returns
Returns a string that represents the compression type if the time series contains compressed data; returns NULL if the time series does not contain compressed data.
Example
The following statement indicates that the time series that is named compress_test uses the compression type Quantization:
SELECT GetCompression(compress_test) FROM tstable;
(expression) n(),q(1,1,100),ls(0.10), lb(0.10),qls(2,0.15,100,100000),
qlb(2,0.25,100,100000)
1 row(s) retrieved.