FeatureMesh FeatureQL Documentation

website·Indexed 30 days ago

https://docs.featuremesh.com

Documentation for FeatureQL, a functional, entity-centric DSL that transpiles to SQL (DuckDB, Trino, BigQuery). Includes a function reference, core concepts and patterns such as adjacency and hybrid queries, and a getting started guide.

Tokens
10.5K
Snippets
48
Records
98
Agent score
50%

What's inside FeatureMesh

  1. Configure time-based sliding windows

    Implement sliding windows using RANGE BETWEEN INTERVAL … PRECEDING AND CURRENT ROW on a timestamp column that is sorted via ORDER BY. This can be applied at the top level or inside a TRANSFORM block.
  2. Create inline data tables with INLINE_COLUMNS

    The INLINE_COLUMNS function allows developers to create small data tables (mock data or lookup tables) directly within FeatureQL without requiring an external SQL source.
  3. Model bitemporal data in FeatureQL

    A bitemporal model in FeatureQL tracks two independent time axes: valid time (when the event occurred in the real world) and transaction time (when it was recorded in the system). This is used for handling late corrections and semi-additive metrics.
  4. Deduplicate rows within an array

    Use the deduplication pattern to keep only one row per key inside an array of rows. Common implementations include first_last_per_group, top_n, or using row_number to keep the first or last record.
  5. Perform non-equi joins with RELATED...ON

    Use RELATED(<aggregate> ON <predicate>) to produce one value per outer entity when a standard key-only VIA relationship cannot express the required match (e.g., range joins, as-of joins, or theta joins).