Skip to content

Add BIGQUERY and MAQL to OSIDialect - #2095

Open
ota2000 wants to merge 1 commit into
dbt-labs:mainfrom
ota2000:feature/osi-dialect-bigquery-maql
Open

Add BIGQUERY and MAQL to OSIDialect#2095
ota2000 wants to merge 1 commit into
dbt-labs:mainfrom
ota2000:feature/osi-dialect-bigquery-maql

Conversation

@ota2000

@ota2000 ota2000 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Resolves #2094

Description

The OSI core spec dialect enum is ["ANSI_SQL", "SNOWFLAKE", "MDX", "TABLEAU", "DATABRICKS", "MAQL", "BIGQUERY"] (apache/ossie core-spec/osi-schema.json). OSIDialect only has the first five, so OSI documents carrying BIGQUERY / MAQL expressions fail pydantic validation — with dbt-core 1.12 native OSI parsing that is a hard dbt parse failure.

Adding the two members is sufficient to unblock those documents: _get_expression already falls back to the first available dialect when the preferred one is absent, so e.g. a BigQuery-only expression is picked up under the default ANSI_SQL preference.

Verification

  • tests_metricflow_semantic_interfaces/osi/: 94 passed

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have signed the CLA
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have added a changelog entry via changie

The OSI core spec dialect enum includes MAQL and BIGQUERY; OSI
documents using those dialects currently fail pydantic validation.
Adding the members is enough to unblock them: _get_expression already
falls back to the first available dialect when the preferred one is
absent.
@ota2000
ota2000 requested a review from a team as a code owner July 23, 2026 03:26
Copilot AI review requested due to automatic review settings July 23, 2026 03:26
@cla-bot cla-bot Bot added the cla:yes label Jul 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates MetricFlow’s OSI conversion models to align OSIDialect with the OSI core spec so OSI documents containing BIGQUERY / MAQL dialect expressions pass Pydantic validation (avoiding dbt parse failures with dbt-core’s native OSI parsing).

Changes:

  • Add MAQL and BIGQUERY members to the OSIDialect enum.
  • Add a changie entry documenting the user-visible compatibility improvement.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
metricflow/converters/models.py Extends OSIDialect to include MAQL and BIGQUERY for OSI schema compatibility.
.changes/unreleased/Features-20260723-130000.yaml Records the change in the unreleased changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSIDialect enum is missing BIGQUERY and MAQL from the OSI core spec

2 participants