Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-bi-semantic-layer

BI & Semantic Layer Internals (Governed Metrics, SQL Compiler & Cache)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![BI & Semantic Layer Internals (Governed Metrics, SQL Compiler & Cache) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-bi-semantic-layer/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-bi-semantic-layer)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-bi-semantic-layer)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-bi-semantic-layer" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="BI & Semantic Layer Internals (Governed Metrics, SQL Compiler & Cache) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["BI / AI Text-to-SQL"]
  n1_1["Metric Query API"]
  n2a_2["Semantic SQL Compiler"]
  n2b_3[("Pre-Agg Rollup Cache")]
  n3_4[("Cloud OLAP Warehouse")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Query KPI · SQL/API"| n1_1
  n1_1 -->|"2a. Compile · AST"| n2a_2
  n1_1 -.->|"2b. Hit rollup · Cache"| n2b_3
  n2a_2 -->|"3a. Scan fact · SQL"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • BI / AI Text-to-SQLSTATELESS
    Metric + Dimension Query
  • Metric Query APISTATELESS
    GraphQL/SQL/JDBC governed entry
  • Semantic SQL CompilerSTATELESS
    Resolves joins, grain & measures
  • Pre-Agg Rollup CacheSTATEFUL
    Serves common grains in <50ms
  • Cloud OLAP WarehouseSTATEFUL
    ClickHouse / Snowflake / Iceberg
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. BI / AI Text-to-SQL → Metric Query API (Query KPI)[SQL/API]
  2. Metric Query API → Semantic SQL Compiler (Compile)[AST]
  3. Metric Query API → Pre-Agg Rollup Cache (Hit rollup)[Cache]
  4. Semantic SQL Compiler → Cloud OLAP Warehouse (Scan fact)[SQL]
  5. Pre-Agg Rollup Cache → Cloud OLAP Warehouse (Sync)[Control]
  6. Cloud OLAP Warehouse → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →