Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Choosing a query method

Compare the available query interfaces and select the right fit for your integration.

All semantic query methods use the same governed definitions. Choose based on consumer workflow and the controls the query needs, not based on different business logic.

Capability
REST
Semantic SQL
GraphQL
Metrics
Source SQL

Governed measures and dimensions

Yes

Yes

Yes

Yes, one named KPI

No

Best for generated application queries

Best fit

Possible

Good for typed clients

Best for KPI calls

Avoid

Schema introspection

Via metadata

Via metadata

Native

Via metadata

Via metadata

Complex filters

Full structured filters

SQL WHERE / HAVING

Typed where

POST filters

Warehouse SQL

Segments

Native

Boolean condition

Recreate with where

Auto-applied

No semantic segments

Inline result

No

No

Usually

No

No

Parquet result

Yes

Yes

No inline export

Yes

Yes

Physical columns / warehouse functions

No

Limited semantic subset

No

No

Yes

  1. If the consumer asks for one approved KPI, start with Metrics.

  2. For application-generated analytical queries, use REST.

  3. For SQL-native exploration over governed members, use Semantic SQL.

  4. For a typed frontend query and nested JSON, use GraphQL.

  5. Use Source SQL only when the semantic layer cannot represent the question.

Last updated

Was this helpful?