KEYSET()
All functions > METADATA > KEYSET()
Returns a reference to a keyset.
Signatures
Returns: A table representing the defined keyset
KEYSET(entity: ENTITY, query: VARCHAR) → TABLE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
entity | ENTITY | Yes | The entity type this keyset represents |
query | VARCHAR | Yes | SQL query defining how to retrieve entity keys; may contain named :parameters |
Notes
- The persisted feature name is the keyset identity
- Keysets define collections of entity identifiers for batch processing
- Source lineage is derived from the query; no table hints are required
- Use named :parameters with a named ROW in @BIND_KEYSET()
On this page