Semantic Layer

Semantic layer is the pattern of defining metrics, dimensions, and joins once — then letting BI tools, dashboards, and LLM agents consume them through the same definitions. From the Thoughtworks Technology Radar Vol 34 (Trial, Apr 2026). Paste a model + query → see the SQL the engine would compile.

Metric model (JSON)

Query (JSON)

Generated SQL


        
      

Catalog (what consumers can ask for)

Domain samples

What the layer buys you

This playground is a teaching toy — single-source metrics, no joins, no time-grain expansion, no access control. Real engines do all of those. The point here is the seam: one definition file, many query consumers, one SQL compiler in the middle.