Skip to content

Working in the Semantic Layer Editor

17 min read · Updated 6 Nov 2026

Your semantic layer is your organisation’s shared data model — the tables, joins, measures and dimensions that every workbook and dashboard is built on. The Semantic Layer Editor is where you shape it.

The Semantic Layer Editor showing the Semantic Model, Business Context and Data Explorer tabs, the Map, Tables & Fields, Joins and UDFs sub-tabs, and a map of joined tables

These articles cover working in it day to day: how your changes are saved, how to go back if you change your mind, how to release your work to everyone else, and how to let an AI assistant help.

New here? Once your layer has a table in it, the quickest first win is one shared number: follow Define a measure in Business Context to create a measure (a metric such as total revenue), then publish it so every workbook and Data App reports it the same way. To create the layer itself, see Create a semantic layer.

If you’re setting up a semantic layer for the first time, take it in this order: create the layer, bring its tables in and draw the joins on the Map, then define a measure and create a dimension in Business Context, and publish.

Read them in this order:

  1. Find a semantic layer — search, filter and sort the list in Data & AI, and read what each column is telling you.
  2. Create a semantic layer — start an empty layer, copy one, or import a Snowflake semantic view or a YAML file from the Create menu.
  3. How versioning works — your edits save themselves, your history is kept, and publishing is a separate step you choose. The rest of the guide assumes it.
  4. Go back to an earlier version — compare your model against an earlier version and bring back all of it, or just the parts you want.
  5. Publish your changes — release your work to everyone, choose when publishing happens, and understand why the button is sometimes greyed out.
  6. Connect an AI assistant — let ChatGPT, Claude or a coding assistant work with your semantic layer on your behalf.
  7. When your database schema changes — what happens when a table or column changes underneath your model, and how to repair it.
  8. Import a Snowflake semantic view — start a semantic layer from a semantic view your team already built in Snowflake, instead of rebuilding it by hand.

The editor header shows how many workbooks, Data Apps and pinboards are connected to the current semantic layer. While the list loads, it shows Loading connected workbooks…. If the list cannot be loaded, select Retry to try again. A failed request does not mean there are no connected workbooks; a zero count appears only after an empty list is loaded successfully.

The count reads 1 linked item or n linked items, and on a layer Astrato does not hold it is not shown at all rather than shown as zero. Hover over it, or focus it from the keyboard, to open the Linked popover; at zero there is no list to open. Each row shows the item’s icon and name, with View and Edit. Edit on a Data App opens its properties on Analytics. Either action is greyed out when the item has nothing to open that way, such as a workbook with no published version.

The editor header with 4 linked items outlined and its Linked popover open, listing each linked item with View and Edit beside it

When the layer has linked items, Open sits beside the count. Its menu lists them under Workbooks, Data Apps and Pinboards. If the layer has unpublished changes, Astrato warns you before it opens the item.

A missing Data App does not mean no Data Apps. Data Apps are listed only when they are enabled for the workspace, you are a workspace owner or administrator, and the read behind them succeeded and returned a complete list. A creator or designer sees no Data Apps, and neither does anyone whose layer holds more Data Apps than the read will list; the header’s total then leaves them out.

The workbook rows are not filtered to published workbooks: there is one row per workbook, including one somebody is only drafting against the layer. The Linked items column in Find a semantic layer counts published items only, so the two figures can disagree about one layer.

When you open the editor from a workbook, Back to Workbook returns to that workbook and sheet, even if the connected-workbook list cannot be loaded. Opening a semantic layer directly shows Create instead, a menu for making a Data App, workbook or pinboard, or importing a workbook.

The Semantic Layer Editor opened from a workbook, with Back to Workbook outlined at the right of the header

Whichever of those two the header shows is guarded while semantic changes are waiting to be published, and so are the Open menu and the popover’s View and Edit. The dialog is headed You have unpublished changes and tells you linked items will not see them until you publish.

The You have unpublished changes dialog with its Stay and publish and Create anyway buttons

Stay and publish publishes nothing. It closes the dialog and leaves you where you were, and publishing is still a separate action: until you take it, the workbook keeps reading the last published model. The other button — Create anyway, Go back anyway or Open anyway, by exit — leaves without publishing.

Rearranging the map never raises the dialog. Table positions are saved to the draft and do reach everyone when you publish, but the guard watches for a semantic change, so a layout change leaves silently. A diverged engine comparison or a conflict on the remote draft raises it on its own, whatever is pending. A layer held in the browser rather than in Astrato is never guarded.

Select Add in the editor, then select Tables & Views from the menu. The menu also lists the other ways to bring data and model items in.

The Add menu with Tables & Views, Upload a CSV file, Custom SQL Query and Inline table under Data, and Join, UDF and Custom field under Semantic Model

Table names are listed alphabetically within each schema, ignoring letter case. Missing tables stay in that order with their strikethrough styling. Searching or reopening a schema keeps the same ordering.

The Tables & Views list open over the map with the PUBLIC schema expanded, its tables in alphabetical order and the two already in the model ticked

A connection’s table list can leave out a table that exists. When you search for a table’s exact name and an open schema has no table by that name, Tables & Views and the Change source table picker offer Look up “name” in schema. Selecting it reads that one table from the connection; if it exists it joins the list, marked Not listed, and you can add it or switch to it like any other table. A table this model already reads keeps its row, marked the same way, when the table list leaves it out and the source check has not found it missing; its tooltip says it has not been checked yet. If the lookup cannot find the table, it says so, and names the table’s listed spelling when the list holds it in another letter case.

Tables & Views searched for orders_archive, offering Look up “orders_archive” in PUBLIC under the schema

The search box finds schemas, and tables only inside schemas you have opened; when nothing matches it says so and suggests opening the schema or searching for it. On a connection with several databases, the database you are browsing sits beside the Tables & Views heading. A table’s menu on the map offers Show in Tables & Views to open the list at that table.

Rename a field without breaking its measures
  1. The Tables and Fields list with a measure chip on the amount row

    Tables & Fields lists every field in the layer, and a chip beside one names each measure or dimension built on it. Select the field you want to rename.

  2. A field's property panel beside the list, with its Used in section counting one dependant

    Selecting a field opens its panel: the Used in section counts what reads this field, and the pencil beside Name is where a rename starts.

  3. The Name row switched into edit mode with the field name selected

    Clicking the pencil turns the name into an editable box with the current name selected, so a rename only starts deliberately; type the new name and press Enter.

  4. The cascade rename dialog with its Measures group open, naming Total Revenue

    Committing the new name opens a dialog that counts what reads the field and groups it by kind; open a group to read the names, then choose whether to carry the rename through.

  5. The renamed order_amount row still carrying the Total Revenue measure chip

    Choosing to update related references renames the field and rewrites the measure that reads it, so the chip survives; only Source expression keeps amount, because the database column itself is not renamed.

The Tables & Fields tab listing each table with its fields, data types and last updated details

A field’s Used in lists the dimensions, measures and joins that read it directly. Under Also affected if this field changes, it also lists what depends on it through them — business questions, table pre-filters, datasets and set filters — the same list the Remove dialog shows. Its heading counts these as +N more.

In the lists, Last updated and Updated by show a dash for an item with no change of its own: a field whose table changed, or an item unchanged since the first version. Hover the dash to read which it is. Sorted by either of those columns, the list shows the borrowed date or name in italics, so the order stays readable.

In Business Context → Dimensions, select Show on map on a dimension’s row to open the map and its Dimensions browser, select the dimension, and highlight its referenced fields. Repeating the action for the same dimension clears the highlights.

The Dimensions list with an arrow pointing at the Show on map button beside the Order Status dimension

The map after Show on map, with the Dimensions browser open at Order Status and the status field highlighted in the Orders table

Join two tables
  1. The empty Joins tab listing Suggestions, Add a join by hand and Draw it on the Map, with Add in the toolbar

    A new layer has no joins, so the Joins tab says what a join is for and offers three ways to make one: Suggestions, Add a join by hand, or Draw it on the Map.

  2. The new join panel with both table pickers unset

    Add opens an empty join panel: every new join starts as many-to-one, changeable only once it exists, and Create stays disabled until both tables and a field on each side are chosen.

  3. The From table picker open, listing Orders and Customers

    The From picker lists the tables you can join from, and whichever one you choose becomes the many side of the join.

  4. The field picker open on the Orders columns

    With both tables set, the left-hand field picker offers only the columns of the From table, so this key can come from Orders alone.

  5. Two join keys chosen with an equals comparator between them

    Once each side holds a column, the hint about selecting fields from two different tables goes and Create becomes available; the comparator between them stays at equals.

  6. The finished join listed as Orders to Customers

    Create writes the join into the list, where one row names the two tables in join order and carries its cardinality and the matched columns.

The Joins tab listing each join with its tables, cardinality and matching fields

Accepting a join suggestion with Create join or Create all updates your draft. Applying suggestions does not itself publish the semantic layer. Review the joins before publishing your changes through your chosen publication settings.

When connected-data analysis is available, suggestions use the current saved draft, including unpublished tables and joins. If the draft changes during analysis, run the analysis again. A failed analysis shows an error instead of using a previously published model. If connected-data analysis is unavailable for your session or your connection has no eligible exit node, suggestions use model metadata only. This applies to saved drafts as well as unsaved changes.

An eligible exit node means exit-node routing is enabled for your workspace and the connection’s Deployment Region names a region that is still available. A connection left on Legacy / not selected is eligible only where your administrator has also enabled legacy-engine routing. See Choose a Deployment Region.

Opening Suggestions reuses connected-data analysis already loaded for the same saved draft. Adding tables can show suggestions on the map first; the panel shows candidates for the whole model from that analysis. Changing the draft requires new analysis. If you remove an accepted join, a later analysis can suggest it again.

Agents using astrato_semantic_layer_suggest_joins receive the same connected-data suggestions when enabled and supported, including measured join quality when available. Otherwise, candidates use field names and data types; their confidence describes metadata evidence.

Connected-data suggestions include the quality measured during analysis when supported by your environment. All rows match means the target key is unique and every source row matches. Partial match identifies a unique target key with some unmatched or null source keys; the explanation includes those counts. Candidates that fail the engine’s quality checks are excluded. Show quality controls the colored indicators without repeating analysis when its result is already available. An unavailable result remains unknown; it is not a confidence percentage. In a saved join’s properties, Show quality analyzes all its predicates together, including compound keys, and reports matching rows, null keys and orphan rows. Connected-data quality is unavailable when your connection has no eligible exit node.

Where your connection supports it, Data Explorer uses the current saved draft. You can query new tables, joins and measures before publishing. Its field catalog and queries use the same saved revision. If the draft changes during a query, reload the catalog and run the query again.

Without an eligible exit node, Data Explorer continues to use the published model.

Data Explorer is blocked while the semantic layer has blocking validation issues, even when the fields you want to query are unaffected. A notice replaces the query workspace and lists the issues. Select an issue to open its editor, fix it, and return to Data Explorer. In standalone Data Explorer, use Open semantic layer to review issues; authors with edit access can make the repairs. Reloading does not resolve invalid references. Data Explorer does not remove broken elements or fall back to an older published model to bypass validation.

The notice that replaces Data Explorer, headed Fix semantic layer issues to use Data Explorer and listing the Refund Value issue as a link

Exploring a draft does not publish it or change the model used by connected workbooks.

When the query tools advertise draft, agents can send { revision, headToken } from the saved layer to astrato_data_prepare_query. A supported response returns draft; repeat it unchanged for astrato_data_execute_query or astrato_semantic_layer_execute_question, including previews and subsequent pages. If preparation returns draftUnavailable, its catalog describes the published model. Omit draft to query that model. Explicit draft execution fails if the draft changes or the connection loses support; it never switches models silently.

The measure editor checks that the fields used together inside each aggregation can sit on one row. For example, SUM(PARTSUPP.PS_SUPPLYCOST * LINEITEM.L_QUANTITY) needs a common row source for both fields. When no row carries them all, the editor explains why, above the calculation. An incompatible calculation must be corrected before saving.

The calculation editor of Discounted Revenue, SUM of Orders amount times Customers discount_rate, with a red message above it explaining that no row carries both fields and Update unavailable

It checks the model’s relationships; it does not inspect warehouse data or prove that join keys are unique. Where your data connection supports it, the engine’s row-source analysis checks the measure as well. That analysis is skipped for unsupported data sources and when draft validation errors prevent it, so you can still save a valid individual repair while other draft errors remain.

Layer settings decide how every number and date reads across the model. Patterns are Excel format patterns, not spreadsheet formulas, and the editor refuses a formula in place rather than saving it.

Fix a format pattern the editor refuses
  1. The Settings tab with its Format block of separators and patterns

    Settings carries the layer's locale: the decimal and thousand separators, and a format pattern for dates, times, numbers and money. Start at the Money row.

  2. The Money format field holding a refused formula above its error message

    Money refuses a spreadsheet formula: the editor asks for an Excel format pattern, keeps your text in the box, and stores nothing until it is valid. Type a pattern instead, such as $#,##0.00.

  3. The Money field holding an accepted pattern with no error beneath it

    A valid pattern clears the message, and the editor stores it the moment you leave the field, so the layer's money default is yours rather than the one it shipped with.

Settings that change how the model is queried

Section titled “Settings that change how the model is queried”

Settings, at the right-hand end of the tab bar beside Documentation and Dev, has a General section holding three checkboxes. The two described here are not display preferences: both change the queries the layer runs, and on an Astrato-held layer either leaves a semantic change waiting, so the editor’s exits warn you with You have unpublished changes until you publish. The third, Enable inner join for tables, adds a Join type section to every table panel; see View and field variants.

The Settings screen of the editor with its icon outlined at the right of the tab bar, showing the Identity section and the three General checkboxes

Enable auto associative filters is on unless a layer has explicitly turned it off — an absent setting means on. Clearing it reaches the engine as disableAutoAssociativeFilters. For what automatic association does across fact tables, see Set engine associative filters, which explains the behaviour but names an older route to the checkbox than the Settings tab. The explicit set filters you build yourself are separate from this setting.

Use table alias in SQL query insights is off unless a layer has explicitly turned it on, and its info icon explains it as a readability aid. It does more than that: it gives every table a short SQL alias, and those aliases are compiled into the model the engine runs. Where Data Explorer queries the draft, the aliased SQL appears there once the draft has saved; workbooks and dashboards read it only after you publish. View query insights in Data Explorer, available once a preview has loaded, opens that SQL with Copy SQL beside it.

While the setting is on, selecting a table shows a Table alias box in the panel on the right, holding the alias generated from the table name until you type your own. A typed alias is 3 to 8 characters of lower-case letters, digits and underscores, starts with three letters, and does not end in an underscore. The box stops at eight characters, so Use 3 to 8 characters: letters, digits and underscores, starting with three letters. means too short or wrongly shaped — most often a capital letter, which the message does not mention. A clash names the table that already holds the alias: Already used by table. Enter, or leaving the box, commits what you typed; Escape restores what was there, and a refused alias is never stored.

The Orders table selected on the map, with the Table alias box outlined in the panel on the right

Emptying the box does not remove the alias. It hands it back to be generated from the table name, and the box refills with the generated value on the same commit. Table aliases are a model change records sqlAlias as a view property and what becomes of an alias two tables end up sharing, and queryFeatures records what the document stores for both of these settings.

The editor writes the model up for you: a report for a business reader, the same report with the underlying fields and expressions added, or every definition as one table for checking. Each one exports to PDF, Word or Markdown.

Hand someone a written copy of the model
  1. The Documentation tab showing the model as a written report beside a contents list

    The Documentation tab, one of the whole-page tabs at the right of the editor bar, writes the model up as a report with a cover, a contents list and a section for each part. Select Include technical detail.

  2. The Measures table with a Formula and a Format column beside each measure

    Include technical detail adds the columns a reviewer needs to check the work, so each measure now carries the formula it computes and the format it prints in. Select Definitions.

  3. The All definitions table listing every item in the model with its definition

    Definitions lays the same model out as one wide table, so a reviewer can read every table, field, join, dimension and measure in a single pass. Search the model for a term.

  4. The definitions table narrowed to the four rows mentioning revenue, matches marked

    Searching narrows the document to what mentions your term and marks every match in the table, so you can check how revenue is defined without reading the rest. The cross clears the search.

  5. The Export menu open over the full definitions table

    With the search cleared, Export hands the open view over as a file, here the definitions: Word for a review cycle, Markdown for a repository, or PDF through your browser print dialog.

Semantic layer — your organisation’s shared data model. One semantic layer can power many workbooks.

Draft, also called your working copy — the editable version of the model. It’s saved as you go, it’s shared with everyone else who can edit the layer, and nothing reading the published model sees it until you publish. The MCP query tools call this same saved draft draft.

Revision — every saved change, numbered in order. You’ll see these as Rev 0, Rev 1 and so on.

Version — a full snapshot you can return to. Some are taken automatically, and you can name your own.

Publish — sending your work to the live model, so workbooks and dashboards pick it up.

Issues — problems the editor has found in your model. While any validation issue is unresolved, you can’t publish; source-check findings don’t block it.

The one thing to remember: saving and publishing are not the same. Your work is safe in the editor long before it reaches anyone downstream, and nothing reaches your workbooks until you publish.

If the application reports an available update, see Reload when an application update is available for how to reload or dismiss the notification.

If you’re about to make a big change to a model other people rely on, read How versioning works first — particularly the part about naming a version before you start. It’s the difference between a confident change and a nervous one.

Repair an engine file that cannot be imported

Section titled “Repair an engine file that cannot be imported”

Inline tables can include calculated fields alongside their stored columns. Importing and exporting a layer preserves those expressions and their metadata without adding columns to the inline data. Calculated fields appear in the normal field list and can be edited there. The expression must still be valid for the data it reads; importing it does not prove that it will run successfully.

While calculated fields are present, the inline data grid allows cell edits and new columns at the end. To remove, reorder or rename existing columns, remove the calculated fields first and recreate their expressions against the updated column positions. This prevents an existing expression from silently reading a different column.

If an existing layer cannot be converted, recovery mode opens its original engine semantic file instead of the visual editor. The error names the failing definition where possible. No definitions are removed to make the layer load.

Edit the JSON or YAML in Original engine semantic file. Download original saves the preserved source; Download edits saves your current changes. Fix the reported conversion error, then select Validate and create draft. Further errors may appear as you repair the file.

Recovery mode showing the Original engine semantic file with Download original, Download edits and Validate and create draft above it, and the conversion error with Go to definition in the Issues panel on the right

The editor scrolls through the complete source. Errors appear once in the Issues panel on the right. Use Go to definition when the importer identifies a definition, or Go to error when a syntax error has a precise location. Only located syntax errors are underlined; conversion errors do not mark the entire file as invalid.

Successful conversion creates a new draft and keeps the original in version history. Review the normal validation issues before publishing. Recovery does not publish or change the existing engine layer. If saving fails, your edits remain available in the recovery editor.