RELATED
All functions > CORE > RELATED
Joins a feature or an aggregation using a key as base
Signatures
Returns: The joined feature value
RELATED(base: FEATURE, add: FEATURE) → T sql
| Parameter | Type | Required | Description |
|---|---|---|---|
base | FEATURE | Yes | Base feature to use for binding |
add | FEATURE | Yes | Feature to add |
Notes
- RELATED is syntactic sugar for EXTEND with automatic wrap/unwrap
- RELATED(joined_feature VIA base_feature) expands to: EXTEND(joined_feature AS joined_field WITH ROW(base_feature AS field_name))[joined_field]
- Avoids the manual ROW construction and field extraction needed with EXTEND
- Will be rewritten to EXTEND/EXTEND during query processing
On this page