KEYSET
All functions > METADATA > KEYSET
Returns a reference to a keyset.
Signatures
Returns: A table representing the defined keyset
KEYSET(name: VARCHAR, entity: ENTITY, query: VARCHAR, [tables: ARRAY<VARCHAR>]) → TABLE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
name | VARCHAR | Yes | The name identifier for this keyset |
entity | ENTITY | Yes | The entity type this keyset represents |
query | VARCHAR | Yes | SQL query defining how to retrieve the keyset |
tables | ARRAY<VARCHAR> | No | Array of table names referenced in the query (optional) |
Notes
- Creates a named keyset definition for entity keys
- Keysets define collections of entity identifiers for batch processing
- The query parameter specifies how to retrieve entity keys
- Used as a reusable reference for batch feature computation
- Enables efficient materialization of features for multiple entities
- Part of the FeatureMesh keyset and binding system
On this page