Skip to content

Commit

Permalink
Update docs/source/authoring_features/ChainingFeatures.md
Browse files Browse the repository at this point in the history
Co-authored-by: Varant Zanoyan <[email protected]>
Signed-off-by: Pengyu Hou <[email protected]>
  • Loading branch information
pengyu-hou and ezvz authored Feb 5, 2024
1 parent af71ddd commit bc0efad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/authoring_features/ChainingFeatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## What is a Chaining Feature
Chaining Features refers to features which require weaving together transformations and aggregations along with denormalization.
For example, compute “average square footage of last_k listings viewed by a user in the last week” or “average price of listings a user viewed in the last 14 days”.
For example, compute “average price of the last 10 items that a user purchased”. This combines an initial `last_k` operation to get the "last 10 items" then applies an `average` operation on top of it as a chained aggregation.

Or alternatively, "average weight of the last 10 items that a user purchased", but assuming that weight is not an included field in the purchases data, and rather stored in a normalized fashion in a different table.
These features cannot be expressed in single Join or GroupBy but need to be aggregated in several steps.

Assuming that square footage of a listing is stored separately from listing views - computing this requires
Expand Down

0 comments on commit bc0efad

Please sign in to comment.