Back to Platform

Semantic Compiler

Semantic Compiler

One Definition, Every Target

The Semantic Compiler takes a single semantic definition and generates production-ready artifacts for the tools your organization already uses. No more hand-rewriting metrics in SQL, DAX, dbt, and REST — define once, compile everywhere.

Supported Targets

Data Warehouses

  • Snowflake semantic views and dynamic tables
  • SQL views optimized for your warehouse dialect
  • dbt metrics and models with lineage embedded

Business Intelligence

  • Power BI / Microsoft Fabric semantic models
  • Looker LookML and explores
  • Tableau published data sources

APIs and Applications

  • GraphQL schemas with resolver stubs
  • REST APIs exposing entities and metrics
  • OpenAPI specifications

How It Works

  1. Ingest the semantic model from Semantic Studio
  2. Resolve dialect-specific mappings and connection profiles
  3. Generate idempotent artifacts with deterministic naming
  4. Validate output against target schemas and policies
  5. Deploy via CI/CD or publish directly to the target platform

Python-Based and Extensible

The compiler is built in Python with a pluggable target architecture. Teams can add custom generators, linting rules, and deployment hooks without forking the core engine.

Key Benefits

  • Consistency — the same metric formula in every tool
  • Governance — changes propagate with full lineage and approval
  • Velocity — cut data product delivery time from weeks to hours
  • Maintainability — one source of truth reduces drift across platforms

Use Cases

  • Retire duplicate DAX / LookML / dbt definitions in favor of one compiled source
  • Support both Snowflake and Fabric without maintaining two metric layers
  • Ship a GraphQL API for a new data product without writing resolvers by hand
  • Enforce policy tags (PII, export-controlled, regulated) at compile time, not runtime

"We replaced five redundant metric definitions with one semantic model. The compiler now keeps them in sync automatically." — Analytics Engineering Lead