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
ParameterTypeRequiredDescription
nameVARCHARYesThe name identifier for this keyset
entityENTITYYesThe entity type this keyset represents
queryVARCHARYesSQL query defining how to retrieve the keyset
tablesARRAY<VARCHAR>NoArray 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
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19