Missing Value Imputation | Teradata Vantage - Missing Value Imputation - Advanced SQL Engine - Teradata Database

Time Series Tables and Operations

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
cxa1555383531762.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1208
lifecycle
previous
Product Category
Teradata Vantageā„¢

If there are missing values in the data several modes are supported for the imputation of missing values both during the intermediate computation of an aggregate and in the result set for all timebuckets. Notice in the table created in Table and Data Definition for Time Series Aggregates Examples there are some null values for the TEMPERATURE column and not all the timebuckets are represented.

With missing values, consider the following:
  • How the missing values within a timebucket affect the result for that group; for example, should the missing values be ignored, treated as 0, or handled another way.
  • If you want a result for each timebucket, you must specify the manner in which this result should be computed (for example, should the result be ignored, returned with a constant value, and so on).

There are different approaches for each issue presented above which affect the overall result obtained. The following describes the supported modes of operation for all time series aggregates and how to specify the desired behavior in SQL.

Note that only the AVERAGE function is used as an example, but the modes described apply to all aggregates.