KEYSET
All functions > BIND > KEYSET
Defines a keyset.
Syntax
KEYSET(name, entity, query)
sql
Arguments
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 |
Returns
A table representing the defined keyset
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
- Keysets can be referenced by name in BIND_KEYSET operations