MetricTransform represents a single statistic built on top of an input column.
InputTransform acts as a signal of how to process the metric.
InputTransform acts as a signal of how to process the metric.
IsNull: Check if the input is null.
Raw: Operate in the input column.
One: lit(true) in spark. Used for row counts leveraged to obtain null rate values.
Post processing for finalized values or IRs when generating a time series of stats.
Post processing for finalized values or IRs when generating a time series of stats. In the case of percentiles for examples we reduce to 5 values in order to generate candlesticks.
Stats applied to any column
Build RowAggregator to use for computing stats on a dataframe based on metrics
For the schema of the data define metrics to be aggregated
Stats applied to numeric columns
Input schema is the data required to update partial aggregations / stats.
Input schema is the data required to update partial aggregations / stats.
Given a valueSchema and a metric transform list, defines the schema expected by the Stats aggregator (online and offline)
A valueSchema (for join) and Metric list define uniquely the IRSchema to be used for the statistics.
A valueSchema (for join) and Metric list define uniquely the IRSchema to be used for the statistics. In order to support custom storage for statistic percentiles this method would need to be modified. IR Schemas are used to decode streaming partial aggregations as well as KvStore partial stats.
Module managing FeatureStats Schema, Aggregations to be used by type and aggregator construction.
Stats Aggregation has an offline/ batch component and an online component. The metrics defined for stats depend on the schema of the join. The dataTypes and column names. For the online side, we obtain this information from the JoinCodec/valueSchema For the offline side, we obtain this information directly from the outputTable. To keep the schemas consistent we sort the metrics in the schema by name. (one column can have multiple metrics).