Skip to main content
The inspector is useful for:
  • Understanding query structure: See exactly how Omni is interpreting your point-and-click query building
  • Creating sample queries: Quickly copy queries from workbooks to topic files for AI context and example queries
  • Debugging queries: Compare the query configuration to the generated SQL to troubleshoot issues
  • Learning YAML syntax: See how your UI actions translate to YAML configuration for modeling

Opening the inspector

There are two ways to open the inspector in a workbook:
  • Click View > Inspector
  • Click the icon located near the bottom left corner of the page
The inspector will open as a side panel showing the configuration for the current query:

Inspector sections

The inspector contains a few sections:
  • Dialect SQL - Requires Querier or higher permissions. Displays the query written in the SQL dialect of the database backing the connection.
  • Query structure - The query represented in Omni’s query language
  • Vis config - The configuration of the visualization associated with the query, if any

Dialect SQL

Querier permissions or higher are required to view dialect SQL.
The Dialect SQL section in the inspector displays the query written in the same SQL dialect as the database backing the connection. All field references and Omni functions will be translated to the flavor of SQL used by your database. In fact, you could copy this SQL query and run it in another IDE pointed at the database.

Query structure

The Query structure section in the inspector displays the complete query configuration: This can include:
  • Fields selected in the query
  • Base view or topic
  • Filters applied to the query
  • Sorts and limits
  • Calculations
  • Pivots
  • Period-over-period settings
You can toggle between JSON and YAML formats using the format selector at the top of the section.

Visualization configuration (vis config)

While the Vis Config section will be present even when viewing the results table, it may not be populated. This section of the inspector will only populate when viewing a visualization.
The Vis Config section in the inspector displays the visualization settings for the current chart: This includes:
  • Chart type
  • Color configuration
  • Axis settings
  • Series configuration
  • Other visualization-specific settings
You can toggle between JSON and YAML formats using the format selector at the top of the section.

Copying configuration

Each section in the inspector includes a copy button that allows you to copy the configuration to your clipboard:
  • Query structure copy button: Copies just the query configuration
  • Visualization config copy button: Copies just the visualization configuration
  • Copy query and visualization YAML button (in inspector header): Copies both the query and visualization configuration in the sample query format ready to paste into a topic file:

Copying queries to topics as sample queries

The YAML format in the inspector matches the structure used in topic sample queries. To add a query as a sample query to a topic:
1
Build your query in a workbook.
2
Open the inspector and click Copy query and visualization YAML in the inspector header.
3
Open the model IDE and navigate to your topic file.
4
Paste the copied YAML into the sample_queries section of your topic file.
5
Add a query name and any additional parameters like description, prompt, or ai_context.

Next steps