What to ask for
A missing permission doesn’t stop a build. The agent reads everything it can, tells you what it couldn’t read, and names whom to ask.
Query history
Query history is the SQL your team already runs, and it is usually the richest source of metrics. Your agent reads up to the last 90 days of successfulSELECT statements that touch the tables in scope, grouped by distinct statement, up to 5,000 statements.
Snowflake
The agent tries these in order and uses the first one that answers.-
A query-shape view an admin created once. This is the easiest option to approve: analysts need only
SELECTon one view, and the view holds no user names. An admin who can readSNOWFLAKE.ACCOUNT_USAGEruns this, narrowingdatabase_nameto the databases your team works in: -
SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY, when your role has theSNOWFLAKE.GOVERNANCE_VIEWERdatabase role or imported privileges on theSNOWFLAKEdatabase. -
INFORMATION_SCHEMA.QUERY_HISTORY, which needs no grant. It returns only your own queries, and others’ on warehouses your role can monitor, from the last 7 days. If your build found only a week of history, this is why: ask for option 1 or 2. - An export file from someone who has access.
Databricks
-
A query-shape view an admin created once, as for Snowflake:
-
system.query.history, when you can read system tables. - The Query History API, which returns the queries you can see on the Query History page.
- An export file from someone who has access.
Other warehouses
Your agent uses the warehouse’s own read-only query history. If there isn’t one, ask for an export.What stays on your computer
The agent works in a project folder on your computer. The query history it reads, the BI files it downloads, and the results of the SQL it runs to check a metric stay there. Before anything is written to a metric or a saved query, the agent cleans what it took from query history:- User names are counted, never written. A saved query records how many people ran it, not who.
- Values that look like personal data are replaced. A literal such as an email address in a
WHEREclause becomes a numbered placeholder,<redacted:1>, so the SQL still reads correctly without the value. - Rare values are left out. By default, a literal is kept only when several statements or several people use it.
What Atlan Trident stores
When you approve a write, Atlan Trident stores:- Metrics: each definition, including its formula, source table, joins, filters, grain, dimensions, and example questions with SQL.
- Saved queries: the SQL, the question it answers, and how often and by how many people it ran.
- Links between metrics and the saved queries that use them, and the revision and release history of each.
Before you can use real data
If your security team hasn’t approved using real data yet, you can still see the whole flow:- Try the demo. The Analytics plugin builds metrics on sample data and needs no warehouse and no sign-in.
- Keep it local. On your own data, choose Keep local at the save step. Nothing is written to Atlan Trident until you choose to save.
Related
- Build your first metrics: Build metrics from query history once access is in place.
- Set up Analytics in your coding agent: Build from dashboards, BI models and query history.
- Metric Studio errors: When a build doesn’t start or finds too little.