- TimeColumn
- Specify the name of the input_table column that contains the time points of the time series whose missing values are to be calculated.
- TimeInterval
- [Optional] Specify exactly one of time_table or TimeInterval.
Specify the length of time, in seconds, between calculated values. This value must be either INTEGER or DOUBLE PRECISION.
- ValueColumns
- Specify the names of input_table columns to interpolate to the output table.
- TimeDataType
- [Optional] Specify the data type of the output column that corresponds to the input table column that TimeColumn specifies (time_column).
If you omit this argument, the function infers the data type of time_column from the input table and uses the inferred data type for the corresponding output table column.
If you specify this argument, the function can transform the input data to the specified output data type only if both the input column data type and the specified output column data type are in this list:- INTEGER
- BIGINT
- SMALLINT
- DOUBLE PRECISION
- NUMERIC(n[,m])
- ValueDataType
- [Optional] Specify the data types of the output columns that correspond to the input table columns that ValueColumns specifies.
If you omit this argument, the function infers the data type of each time_column from the input table and uses the inferred data type for the corresponding output table column.
If you specify ValueDataType, it must be the same size as ValueColumns. That is, if ValueColumns specifies n columns, ValueDataType must specify n data types. For i in [1, n], value_column_i has value_type_i. However, value_type_i can be empty; for example:
ValueColumns ('c1', 'c2', 'c3') ValueDataType (INTEGER, ,VARCHAR)
If you specify this argument, the function can transform the input data to the specified output data type only if both the input column data type and the specified output column data type are in this list:- INTEGER
- BIGINT
- SMALLINT
- DOUBLE PRECISION
- NUMERIC(n[,m])
- InterpolationType
- [Optional] Specify interpolation types for the columns that ValueColumns specifies.
- AggregationType
- [Optional] Specify the aggregation types of the columns that ValueColumns specifies.
- StartTime
- [Optional] Specify the start time for the time series.
- EndTime
- [Optional] Specify the end time for the time series.
- ValuesBeforeFirst
- [Optional] Specify the values to use if start_time is before the start time of the time series in input_table. Each of these values must have the same data type as its corresponding value_column. Values of data type VARCHAR are case-insensitive.
- ValuesAfterLast
- [Optional] Specify the values to use if end_time is after the end time of the time series in input_table. Each of these values must have the same data type as its corresponding value_column. Values of data type VARCHAR are case-insensitive.
- DuplicateRowsCount
- [Optional] Specify the number of rows to duplicate across split boundaries if you use the function SeriesSplitter (SeriesSplitter Example 2 : Using SeriesSplitter with Interpolator shows how to use Interpolator with SeriesSplitter).
If you specify this argument but do not use SeriesSplitter, or do not conform to the conditions that apply for the value for each interpolation or aggregation type, the function either issues an error message or produces incorrect results.
If you specify only value1, the function duplicates value1 rows from the previous partition and value1 rows from the next partition. If you specify both value1 and value2, the function duplicates value1 rows from the previous partition and value2 rows from the next partition. Each argument value must be nonnegative INTEGER.
Both value1 and value2 must exceed the number of data points that the function needs for every specified interpolation or aggregation method. The following table shows how many data points the function needs for each interpolation method.Interpolation Method Number of Data Points Needed 'linear' 1 'constant' 1 'spline' 2 'median [(window(n))]' n/2 'loess [(weights ({constant|tricube}), degree ({0|1|2}), span(m))]' If m > 1: m-1 If m < 1: (m * n)-1, where n is total number of data rows, found in column n of the count_row_number table
- Accumulate
- [Optional] Specify the names of input_table columns (other than those specified by TimeColumn and ValueColumns) to copy to the output table.